From e600ffd8bbca7a89a2c989e9725a41df9bf7c675 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Thu, 22 Feb 2007 10:09:55 +0000 Subject: [PATCH] Fix all compilation warnings on Darwin git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@208 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- mbox-helper/mbox-helper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.1.4