diff options
author | ache <ache@FreeBSD.org> | 1999-11-04 05:01:28 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-11-04 05:01:28 +0000 |
commit | 049d5796117bb710a45520ba1f1b2ca9996e3853 (patch) | |
tree | a81b738c7adb0ca496f937021e31bb6470b85b2a /lib/libc | |
parent | cf9ff6546cdddd8b3fcdf4a1101b8287cfb795ef (diff) | |
download | FreeBSD-src-049d5796117bb710a45520ba1f1b2ca9996e3853.zip FreeBSD-src-049d5796117bb710a45520ba1f1b2ca9996e3853.tar.gz |
Add unsigned char cast to isalpha
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/gethostnamadr.c | 2 | ||||
-rw-r--r-- | lib/libc/net/getnetnamadr.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c index 8e02d2c..010e4db 100644 --- a/lib/libc/net/gethostnamadr.c +++ b/lib/libc/net/gethostnamadr.c @@ -103,7 +103,7 @@ init_services() if (cp == NULL) continue; do { - if (isalpha(cp[0])) { + if (isalpha((unsigned char)cp[0])) { service_order[cc] = get_service_name(cp); if(service_order[cc] != SERVICE_NONE) cc++; diff --git a/lib/libc/net/getnetnamadr.c b/lib/libc/net/getnetnamadr.c index 3ac10c2..cb5871b 100644 --- a/lib/libc/net/getnetnamadr.c +++ b/lib/libc/net/getnetnamadr.c @@ -101,7 +101,7 @@ init_services() if (cp == NULL) continue; do { - if (isalpha(cp[0])) { + if (isalpha((unsigned char)cp[0])) { service_order[cc] = get_service_name(cp); if(service_order[cc] != SERVICE_NONE) cc++; |