Add (unsigned char) cast to ctype functions
This commit is contained in:
parent
eee0442cb4
commit
e833833eb1
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fstat.c,v 1.67 2004/04/21 01:05:47 christos Exp $ */
|
||||
/* $NetBSD: fstat.c,v 1.68 2004/10/30 17:29:47 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1988, 1993
|
||||
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)fstat.c 8.3 (Berkeley) 5/2/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: fstat.c,v 1.67 2004/04/21 01:05:47 christos Exp $");
|
||||
__RCSID("$NetBSD: fstat.c,v 1.68 2004/10/30 17:29:47 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -199,7 +199,7 @@ main(argc, argv)
|
||||
case 'p':
|
||||
if (pflg++)
|
||||
usage();
|
||||
if (!isdigit(*optarg)) {
|
||||
if (!isdigit((unsigned char)*optarg)) {
|
||||
warnx("-p requires a process id");
|
||||
usage();
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cmds.c,v 1.107 2004/07/20 11:05:20 lukem Exp $ */
|
||||
/* $NetBSD: cmds.c,v 1.108 2004/10/30 17:36:31 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996-2004 The NetBSD Foundation, Inc.
|
||||
@ -103,7 +103,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: cmds.c,v 1.107 2004/07/20 11:05:20 lukem Exp $");
|
||||
__RCSID("$NetBSD: cmds.c,v 1.108 2004/10/30 17:36:31 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -166,7 +166,7 @@ confirm(const char *cmd, const char *file)
|
||||
clearerr(stdin);
|
||||
return (0);
|
||||
}
|
||||
switch (tolower(*line)) {
|
||||
switch (tolower((unsigned char)*line)) {
|
||||
case 'a':
|
||||
confirmrest = 1;
|
||||
fprintf(ttyout,
|
||||
@ -1890,7 +1890,7 @@ docase(char *name)
|
||||
if (dochange) {
|
||||
for (i = 0; new[i] != '\0'; i++)
|
||||
if (isupper((unsigned char)new[i]))
|
||||
new[i] = tolower(new[i]);
|
||||
new[i] = tolower((unsigned char)new[i]);
|
||||
}
|
||||
return (new);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: fetch.c,v 1.152 2004/08/08 13:52:04 lukem Exp $ */
|
||||
/* $NetBSD: fetch.c,v 1.153 2004/10/30 17:36:31 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
|
||||
@ -41,7 +41,7 @@
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: fetch.c,v 1.152 2004/08/08 13:52:04 lukem Exp $");
|
||||
__RCSID("$NetBSD: fetch.c,v 1.153 2004/10/30 17:36:31 dsl Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
@ -1046,10 +1046,9 @@ fetch_url(const char *url, const char *proxyenv, char *proxyauth, char *wwwauth)
|
||||
== NULL) {
|
||||
clearerr(stdin);
|
||||
goto cleanup_fetch_url;
|
||||
} else {
|
||||
if (tolower(reply[0]) != 'y')
|
||||
goto cleanup_fetch_url;
|
||||
}
|
||||
if (tolower((unsigned char)reply[0]) != 'y')
|
||||
goto cleanup_fetch_url;
|
||||
auser = NULL;
|
||||
apass = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user