Fix all compilation warnings on Darwin
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Thu, 22 Feb 2007 10:09:55 +0000 (10:09 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:30 +0000 (00:35 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@208 9869982d-c50d-0410-be91-f2a2ec7c7c7b

mbox-helper/mbox-helper.c

index 56c0e35..66aa354 100644 (file)
@@ -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) {