summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-08-06 22:01:38 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-08-06 22:01:38 +0200
commita2336b93357072d26f4ffcb592de4fd910449e31 (patch)
tree0d0b3b46611d73d0c674f7966ba138aacdeeeeab
parenta7838b25797e7bbabcd232e209d3539aa098409c (diff)
Fix comparison signedness warnings.
-rw-r--r--url.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/url.c b/url.c
index b31a94c4..389fca88 100644
--- 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;