diff options
author | des <des@FreeBSD.org> | 2007-12-18 10:41:12 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2007-12-18 10:41:12 +0000 |
commit | ddf13e4c294f0883bedec65186a9b10371ae7a87 (patch) | |
tree | 13ed2dfaacf453128e0dc265913fc55fd814ec7f /lib/libfetch/fetch.c | |
parent | 75ddc3d2357e981940f6ad3decedf198a76d1e2f (diff) | |
download | FreeBSD-src-ddf13e4c294f0883bedec65186a9b10371ae7a87.zip FreeBSD-src-ddf13e4c294f0883bedec65186a9b10371ae7a87.tar.gz |
Old patch I had lying around: correctly cast the argument to is*().
IWBNI gcc could warn about this the way it warns about printf() abuse.
MFC after: 1 week
Diffstat (limited to 'lib/libfetch/fetch.c')
-rw-r--r-- | lib/libfetch/fetch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c index b98fa56..900b685 100644 --- a/lib/libfetch/fetch.c +++ b/lib/libfetch/fetch.c @@ -369,7 +369,7 @@ fetchParseURL(const char *URL) /* port */ if (*p == ':') { for (q = ++p; *q && (*q != '/'); q++) - if (isdigit(*q)) + if (isdigit((int)*q)) u->port = u->port * 10 + (*q - '0'); else { /* invalid port */ @@ -395,7 +395,7 @@ nohost: } u->doc = doc; while (*p != '\0') { - if (!isspace(*p)) { + if (!isspace((int)*p)) { *doc++ = *p++; } else { *doc++ = '%'; |