]> granicus.if.org Git - mutt/commitdiff
Fix comparison signedness warnings.
authorMatthias Andree <matthias.andree@gmx.de>
Fri, 6 Aug 2010 19:54:22 +0000 (21:54 +0200)
committerMatthias Andree <matthias.andree@gmx.de>
Fri, 6 Aug 2010 19:54:22 +0000 (21:54 +0200)
gnupgparse.c
pop_auth.c

index 56f9061f553b240b36643f8214d42e7e0cc078e8..9de18ebd097fe2df12a29824a103332b67238de2 100644 (file)
@@ -108,7 +108,7 @@ static void fix_uid (char *uid)
        memcpy (uid, buf, ob-buf);
        uid[ob-buf] = '\0';
       }
-      else if (ob-buf == n && (buf[n] = 0, strlen (buf) < n))
+      else if (n >= 0 && ob-buf == n && (buf[n] = 0, strlen (buf) < (size_t)n))
        memcpy (uid, buf, n);
     }
     FREE (&buf);
index d2873d436b4b585584d762a1919cc84f5298b024..b750533ab761d7291f2d9d5c1f4409d805506a1e 100644 (file)
@@ -178,7 +178,7 @@ static pop_auth_res_t pop_auth_apop (POP_DATA *pop_data, const char *method)
   unsigned char digest[16];
   char hash[33];
   char buf[LONG_STRING];
-  int i;
+  size_t i;
 
   if (!pop_data->timestamp)
     return POP_A_UNAVAIL;