summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-12-16 08:22:37 +0000
committerache <ache@FreeBSD.org>1997-12-16 08:22:37 +0000
commit57d8708b904f96b497b311982762ec0fd41de087 (patch)
treee9d380820db9f346d691557dc1b7ff9eceef112a /usr.bin/ftp
parent126c5b135890ca392234b124346ac9a224f2ca4b (diff)
downloadFreeBSD-src-57d8708b904f96b497b311982762ec0fd41de087.zip
FreeBSD-src-57d8708b904f96b497b311982762ec0fd41de087.tar.gz
Add more (unsigned char) casts to ctype macros
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/fetch.c4
-rw-r--r--usr.bin/ftp/ftp.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c
index 4283b35..2c9f58c 100644
--- a/usr.bin/ftp/fetch.c
+++ b/usr.bin/ftp/fetch.c
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$Id$");
+__RCSID("$Id: fetch.c,v 1.3 1997/12/13 20:38:16 pst Exp $");
__RCSID_SOURCE("$NetBSD: fetch.c,v 1.16.2.1 1997/11/18 01:00:22 mellon Exp $");
#endif /* not lint */
@@ -183,7 +183,7 @@ url_get(origline, proxyenv)
memset(&sin, 0, sizeof(sin));
sin.sin_family = AF_INET;
- if (isdigit(host[0])) {
+ if (isdigit((unsigned char)host[0])) {
if (inet_aton(host, &sin.sin_addr) == 0) {
warnx("Invalid IP address: %s", host);
goto cleanup_url_get;
diff --git a/usr.bin/ftp/ftp.c b/usr.bin/ftp/ftp.c
index 60482d0..305acd1 100644
--- a/usr.bin/ftp/ftp.c
+++ b/usr.bin/ftp/ftp.c
@@ -1,4 +1,4 @@
-/* $Id$ */
+/* $Id: ftp.c,v 1.11 1997/12/13 20:38:17 pst Exp $ */
/* $NetBSD: ftp.c,v 1.29.2.1 1997/11/18 01:01:04 mellon Exp $ */
/*
@@ -39,7 +39,7 @@
#if 0
static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94";
#else
-__RCSID("$Id$");
+__RCSID("$Id: ftp.c,v 1.11 1997/12/13 20:38:17 pst Exp $");
__RCSID_SOURCE("$NetBSD: ftp.c,v 1.29.2.1 1997/11/18 01:01:04 mellon Exp $");
#endif
#endif /* not lint */
@@ -325,11 +325,11 @@ getreply(expecteof)
printf("%s:", hostname);
(void)putchar(c);
}
- if (dig < 4 && isdigit(c))
+ if (dig < 4 && isdigit((unsigned char)c))
code = code * 10 + (c - '0');
if (!pflag && code == 227)
pflag = 1;
- if (dig > 4 && pflag == 1 && isdigit(c))
+ if (dig > 4 && pflag == 1 && isdigit((unsigned char)c))
pflag = 2;
if (pflag == 2) {
if (c != '\r' && c != ')')
OpenPOWER on IntegriCloud