diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-03-14 12:06:04 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-03-14 12:06:04 +0000 |
commit | d57b00768a8fa44d1e1c5f758440edabfa488baf (patch) | |
tree | dcdc77e502b4d251f05bc4f49f8ececebeb69df0 /pop3.c | |
parent | cd5b84b42695f3a653df1e6692cf1bf5268a50f7 (diff) | |
download | fetchmail-d57b00768a8fa44d1e1c5f758440edabfa488baf.tar.gz fetchmail-d57b00768a8fa44d1e1c5f758440edabfa488baf.tar.bz2 fetchmail-d57b00768a8fa44d1e1c5f758440edabfa488baf.zip |
Fix more compiler warnings.
svn path=/branches/BRANCH_6-3/; revision=4736
Diffstat (limited to 'pop3.c')
-rw-r--r-- | pop3.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -706,7 +706,7 @@ static int pop3_getuidl(int sock, int num, char *id /** output */, size_t idsize return(ok); if ((ok = parseuid(buf, &gotnum, id, idsize))) return ok; - if (gotnum != num) { + if (gotnum != (unsigned long)num) { report(stderr, GT_("Server responded with UID for wrong message.\n")); return PS_PROTOCOL; } @@ -869,6 +869,7 @@ static int pop3_getrange(int sock, int ok; char buf [POPBUFSIZE+1]; + (void)folder; /* Ensure that the new list is properly empty */ ctl->newsaved = (struct idlist *)NULL; @@ -1012,15 +1013,15 @@ static int pop3_getrange(int sock, static int pop3_getpartialsizes(int sock, int first, int last, int *sizes) /* capture the size of message #first */ { - int ok = 0, i; + int ok = 0, i, num; char buf [POPBUFSIZE+1]; - unsigned int num, size; + unsigned int size; for (i = first; i <= last; i++) { gen_send(sock, "LIST %d", i); if ((ok = pop3_ok(sock, buf)) != 0) return(ok); - if (sscanf(buf, "%u %u", &num, &size) == 2) { + if (sscanf(buf, "%d %u", &num, &size) == 2) { if (num == i) sizes[i - first] = size; else @@ -1052,7 +1053,7 @@ static int pop3_getsizes(int sock, int count, int *sizes) if (DOTLINE(buf)) break; else if (sscanf(buf, "%u %u", &num, &size) == 2) { - if (num > 0 && num <= count) + if (num > 0 && num <= (unsigned)count) sizes[num - 1] = size; else /* warn about possible attempt to induce buffer overrun */ @@ -1247,6 +1248,7 @@ static int pop3_delete(int sock, struct query *ctl, int number) static int pop3_mark_seen(int sock, struct query *ctl, int number) /* mark a given message as seen */ { + (void)sock; mark_uid_seen(ctl, number); return(PS_SUCCESS); } |