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;
}
int ok;
char buf [POPBUFSIZE+1];
+ (void)folder;
/* Ensure that the new list is properly empty */
ctl->newsaved = (struct idlist *)NULL;
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
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 */
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);
}