diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2010-08-06 22:01:38 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2010-08-06 22:01:38 +0200 |
commit | a2336b93357072d26f4ffcb592de4fd910449e31 (patch) | |
tree | 0d0b3b46611d73d0c674f7966ba138aacdeeeeab | |
parent | a7838b25797e7bbabcd232e209d3539aa098409c (diff) |
Fix comparison signedness warnings.
-rw-r--r-- | url.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |