summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/fetch.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2007-12-19 00:26:36 +0000
committerdes <des@FreeBSD.org>2007-12-19 00:26:36 +0000
commitd198b4b8bb4da44884c0738e938e1ac5cec10b47 (patch)
tree77d4f9993635ffc61688e8a0a9fcefed7606cf3e /lib/libfetch/fetch.c
parenta2bd2e60b52b58d78553d8455b6d7fca40592eea (diff)
downloadFreeBSD-src-d198b4b8bb4da44884c0738e938e1ac5cec10b47.zip
FreeBSD-src-d198b4b8bb4da44884c0738e938e1ac5cec10b47.tar.gz
As several people pointed out, I did all the ctype casts the wrong
way (not for the first time...) Noticed by: bde, ru ++ MFC after: 1 week
Diffstat (limited to 'lib/libfetch/fetch.c')
-rw-r--r--lib/libfetch/fetch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c
index 900b685..6c4901f 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((int)*q))
+ if (isdigit((unsigned char)*q))
u->port = u->port * 10 + (*q - '0');
else {
/* invalid port */
@@ -395,7 +395,7 @@ nohost:
}
u->doc = doc;
while (*p != '\0') {
- if (!isspace((int)*p)) {
+ if (!isspace((unsigned char)*p)) {
*doc++ = *p++;
} else {
*doc++ = '%';
OpenPOWER on IntegriCloud