]> granicus.if.org Git - mutt/commitdiff
Attached patch for mutt 1.3.X/1.4 and 1.5.X removes gcc warning in
authorVsevolod Volkov <vvv@mutt.org.ua>
Sat, 18 May 2002 05:34:42 +0000 (05:34 +0000)
committerVsevolod Volkov <vvv@mutt.org.ua>
Sat, 18 May 2002 05:34:42 +0000 (05:34 +0000)
pop_lib.c.

pop_lib.c

index ad1fefcd71d366238ff5fcb803a67a1b101ccbd4..65b7c9903a21110b2e4cb55f107532037fe87082 100644 (file)
--- 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))