From: x2003bruneau Date: Thu, 22 Feb 2007 10:09:55 +0000 (+0000) Subject: Fix all compilation warnings on Darwin X-Git-Tag: 1.8~96 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=9dc9bd6d34d47aba9db965abd9cc24c38e7b749f;p=banana.git Fix all compilation warnings on Darwin git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@208 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- diff --git a/mbox-helper/mbox-helper.c b/mbox-helper/mbox-helper.c index 56c0e35..66aa354 100644 --- a/mbox-helper/mbox-helper.c +++ b/mbox-helper/mbox-helper.c @@ -161,7 +161,7 @@ void readHeaders(MBox *mbox, char **headers, int hdrsize) if (!readFrom_(mbox)) { return; } - printf("%d\n%d\n", mbox->messageId, mbox->messageBeginning); + printf("%d\n%d\n", (int)mbox->messageId, (int)mbox->messageBeginning); while (readLine(mbox)) { if (mbox->isFrom_ || !strlen(mbox->line)) { break; @@ -320,7 +320,7 @@ int main(int argc, char *argv[]) int pmid = 0, pos = 0; char *filename = NULL; char **headers = NULL; - char action; + char action = 0; int headerNb = 0; char *endptr; MBox *mbox; @@ -406,7 +406,7 @@ int main(int argc, char *argv[]) while (!feof(mbox->fp)) { readLine(mbox); } - printf("%d\n", mbox->messageId + 1); + printf("%d\n", (int)(mbox->messageId + 1)); break; case 'd': if (fmid == -1) {