From 2a39f1258677519307345420df85e905e9999537 Mon Sep 17 00:00:00 2001 From: Vsevolod Volkov Date: Sat, 18 May 2002 05:34:42 +0000 Subject: [PATCH] Attached patch for mutt 1.3.X/1.4 and 1.5.X removes gcc warning in pop_lib.c. --- pop_lib.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pop_lib.c b/pop_lib.c index ad1fefcd..65b7c990 100644 --- a/pop_lib.c +++ b/pop_lib.c @@ -230,6 +230,7 @@ int pop_connect (POP_DATA *pop_data) int pop_open_connection (POP_DATA *pop_data) { int ret; + unsigned int n, size; char buf[LONG_STRING]; ret = pop_connect (pop_data); @@ -268,7 +269,8 @@ int pop_open_connection (POP_DATA *pop_data) return ret; } - sscanf (buf, "+OK %d %d", &ret, &pop_data->size); + sscanf (buf, "+OK %u %u", &n, &size); + pop_data->size = size; return 0; err_conn: @@ -418,10 +420,11 @@ int pop_fetch_data (POP_DATA *pop_data, char *query, char *msg, /* find message with this UIDL and set refno */ static int check_uidl (char *line, void *data) { - int i, index; + int i; + unsigned int index; CONTEXT *ctx = (CONTEXT *)data; - sscanf (line, "%d %s", &index, line); + sscanf (line, "%u %s", &index, line); for (i = 0; i < ctx->msgcount; i++) { if (!mutt_strcmp (ctx->hdrs[i]->data, line)) -- 2.40.0