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

diff --git a/url.c b/url.c
index b31a94c40510096143141edf911e23ab309973b3..389fca885fc8eb297d1a1bdc826075d70a113b30 100644 (file)
--- a/url.c
+++ b/url.c
@@ -81,7 +81,7 @@ url_scheme_t url_check_scheme (const char *s)
 
   if (!s || !(t = strchr (s, ':')))
     return U_UNKNOWN;
-  if ((t - s) + 1 >= sizeof (sbuf))
+  if ((size_t)(t - s) >= sizeof (sbuf) - 1)
     return U_UNKNOWN;
 
   strfcpy (sbuf, s, t - s + 1);
@@ -251,7 +251,8 @@ int url_parse_mailto (ENVELOPE *e, char **body, const char *src)
   char *tag, *value;
   char scratch[HUGE_STRING];
 
-  int taglen, rc = -1;
+  size_t taglen;
+  int rc = -1;
 
   LIST *last = NULL;