Add (unsigned char) cast to ctype functions
This commit is contained in:
parent
55d39107c6
commit
1869f0e146
@ -34,7 +34,7 @@
|
||||
#include "krb5_locl.h"
|
||||
|
||||
__RCSID("$Heimdal: keytab_keyfile.c,v 1.15 2002/10/21 15:42:06 joda Exp $"
|
||||
"$NetBSD: keytab_keyfile.c,v 1.1.1.5 2003/05/15 20:28:47 lha Exp $");
|
||||
"$NetBSD: keytab_keyfile.c,v 1.2 2004/11/05 22:41:38 dsl Exp $");
|
||||
|
||||
/* afs keyfile operations --------------------------------------- */
|
||||
|
||||
@ -105,7 +105,7 @@ get_cell_and_realm (krb5_context context,
|
||||
}
|
||||
/* uppercase */
|
||||
for (cp = buf; *cp != '\0'; cp++)
|
||||
*cp = toupper(*cp);
|
||||
*cp = toupper((unsigned char)*cp);
|
||||
|
||||
d->realm = strdup (buf);
|
||||
if (d->realm == NULL) {
|
||||
|
4
crypto/dist/krb4/lib/krb/getrealm.c
vendored
4
crypto/dist/krb4/lib/krb/getrealm.c
vendored
@ -22,7 +22,7 @@ or implied warranty.
|
||||
#include "krb_locl.h"
|
||||
|
||||
__RCSID("$KTH-KRB: getrealm.c,v 1.36 1999/09/16 20:41:51 assar Exp $"
|
||||
"$NetBSD: getrealm.c,v 1.1.1.3 2002/09/12 12:22:09 joda Exp $");
|
||||
"$NetBSD: getrealm.c,v 1.2 2004/11/05 22:41:38 dsl Exp $");
|
||||
|
||||
#ifndef MATCH_SUBDOMAINS
|
||||
#define MATCH_SUBDOMAINS 0
|
||||
@ -178,7 +178,7 @@ krb_realmofhost(const char *host)
|
||||
strlcpy(ret_realm, &domain[1], REALM_SZ);
|
||||
/* Upper-case realm */
|
||||
for (cp = ret_realm; *cp; cp++)
|
||||
*cp = toupper(*cp);
|
||||
*cp = toupper((unsigned char)*cp);
|
||||
} else {
|
||||
strncpy(ret_realm, krb_get_default_realm(), REALM_SZ); /* Wild guess */
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: identd.c,v 1.23 2004/08/05 18:05:22 kim Exp $ */
|
||||
/* $NetBSD: identd.c,v 1.24 2004/11/05 21:56:01 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* identd.c - TCP/IP Ident protocol server.
|
||||
@ -37,7 +37,7 @@
|
||||
#include <syslog.h>
|
||||
#include <unistd.h>
|
||||
|
||||
__RCSID("$NetBSD: identd.c,v 1.23 2004/08/05 18:05:22 kim Exp $");
|
||||
__RCSID("$NetBSD: identd.c,v 1.24 2004/11/05 21:56:01 dsl Exp $");
|
||||
|
||||
#define OPSYS_NAME "UNIX"
|
||||
#define IDENT_SERVICE "auth"
|
||||
@ -310,7 +310,7 @@ idhandle(int fd, const char *charset, const char *fmt, const char *osname,
|
||||
|
||||
/* Get local and remote ports from the received data */
|
||||
p = buf;
|
||||
while (*p != '\0' && isspace(*p))
|
||||
while (*p != '\0' && isspace((unsigned char)*p))
|
||||
p++;
|
||||
if ((p = strtok(p, " \t,")) != NULL) {
|
||||
lport = atoi(p);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: makewhatis.c,v 1.30 2003/10/27 00:12:42 lukem Exp $ */
|
||||
/* $NetBSD: makewhatis.c,v 1.31 2004/11/05 21:59:12 dsl Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||
@ -44,7 +44,7 @@
|
||||
#if !defined(lint)
|
||||
__COPYRIGHT("@(#) Copyright (c) 1999 The NetBSD Foundation, Inc.\n\
|
||||
All rights reserved.\n");
|
||||
__RCSID("$NetBSD: makewhatis.c,v 1.30 2003/10/27 00:12:42 lukem Exp $");
|
||||
__RCSID("$NetBSD: makewhatis.c,v 1.31 2004/11/05 21:59:12 dsl Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -531,7 +531,7 @@ parsecatpage(gzFile *in)
|
||||
return ptr;
|
||||
}
|
||||
if ((length > 1) && (ptr[length - 1] == '-') &&
|
||||
isalpha(ptr[length - 2]))
|
||||
isalpha((unsigned char)ptr[length - 2]))
|
||||
last = &ptr[--length];
|
||||
else {
|
||||
last = &ptr[length++];
|
||||
@ -573,7 +573,7 @@ manpreprocess(char *line)
|
||||
from++;
|
||||
if ((*from=='+') || (*from=='-'))
|
||||
from++;
|
||||
while (isdigit(*from))
|
||||
while (isdigit((unsigned char)*from))
|
||||
from++;
|
||||
break;
|
||||
default:
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rmail.c,v 1.19 2003/09/19 06:01:24 itojun Exp $ */
|
||||
/* $NetBSD: rmail.c,v 1.20 2004/11/05 22:00:40 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1993
|
||||
@ -36,7 +36,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)rmail.c 8.3 (Berkeley) 5/15/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: rmail.c,v 1.19 2003/09/19 06:01:24 itojun Exp $");
|
||||
__RCSID("$NetBSD: rmail.c,v 1.20 2004/11/05 22:00:40 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -148,7 +148,7 @@ main(argc, argv)
|
||||
/* Use the "remote from" if it exists. */
|
||||
for (p = addrp; (p = strchr(p + 1, 'r')) != NULL;)
|
||||
if (!strncmp(p, "remote from ", 12)) {
|
||||
for (t = p += 12; *t && !isspace(*t); ++t);
|
||||
for (t = p += 12; *t && !isspace((unsigned char)*t); ++t);
|
||||
*t = '\0';
|
||||
if (debug)
|
||||
(void)fprintf(stderr,
|
||||
@ -176,7 +176,7 @@ main(argc, argv)
|
||||
/* 'p' now points to any system string from this line. */
|
||||
if (p != NULL) {
|
||||
/* Nul terminate it as necessary. */
|
||||
for (t = p; *t && !isspace(*t); ++t);
|
||||
for (t = p; *t && !isspace((unsigned char)*t); ++t);
|
||||
*t = '\0';
|
||||
|
||||
/* If the first system, copy to the from_sys string. */
|
||||
@ -209,7 +209,7 @@ main(argc, argv)
|
||||
}
|
||||
|
||||
/* Save off from user's address; the last one wins. */
|
||||
for (p = addrp; *p && !isspace(*p); ++p);
|
||||
for (p = addrp; *p && !isspace((unsigned char)*p); ++p);
|
||||
*p = '\0';
|
||||
if (*addrp == '\0')
|
||||
addrp = "<>";
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: utility.c,v 1.24 2003/08/07 09:46:52 agc Exp $ */
|
||||
/* $NetBSD: utility.c,v 1.25 2004/11/05 22:02:04 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -34,7 +34,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)utility.c 8.4 (Berkeley) 5/30/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: utility.c,v 1.24 2003/08/07 09:46:52 agc Exp $");
|
||||
__RCSID("$NetBSD: utility.c,v 1.25 2004/11/05 22:02:04 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -1074,7 +1074,7 @@ printdata(tag, ptr, cnt)
|
||||
output_data("%s: ", tag);
|
||||
for (i = 0; i < 20 && cnt; i++) {
|
||||
output_data("%02x", *ptr);
|
||||
if (isprint(*ptr)) {
|
||||
if (isprint((unsigned char)*ptr)) {
|
||||
xbuf[i] = *ptr;
|
||||
} else {
|
||||
xbuf[i] = '.';
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tftpd.c,v 1.28 2004/05/05 20:15:45 kleink Exp $ */
|
||||
/* $NetBSD: tftpd.c,v 1.29 2004/11/05 22:03:26 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -36,7 +36,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)tftpd.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: tftpd.c,v 1.28 2004/05/05 20:15:45 kleink Exp $");
|
||||
__RCSID("$NetBSD: tftpd.c,v 1.29 2004/11/05 22:03:26 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -561,7 +561,7 @@ get_options(struct tftphdr *tp, char *cp, int size, char *ackb,
|
||||
while (cp < endp) {
|
||||
option = cp;
|
||||
while (*cp && cp < endp) {
|
||||
*cp = tolower(*cp);
|
||||
*cp = tolower((unsigned char)*cp);
|
||||
cp++;
|
||||
}
|
||||
if (*cp) {
|
||||
@ -629,8 +629,7 @@ again:
|
||||
goto again;
|
||||
}
|
||||
for (cp = mode; *cp; cp++)
|
||||
if (isupper(*cp))
|
||||
*cp = tolower(*cp);
|
||||
*cp = tolower((unsigned char)*cp);
|
||||
for (pf = formats; pf->f_mode; pf++)
|
||||
if (strcmp(pf->f_mode, mode) == 0)
|
||||
break;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: shutdown.c,v 1.41 2004/10/09 02:51:19 dsainty Exp $ */
|
||||
/* $NetBSD: shutdown.c,v 1.42 2004/11/05 22:46:31 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1990, 1993
|
||||
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1990, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)shutdown.c 8.4 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: shutdown.c,v 1.41 2004/10/09 02:51:19 dsainty Exp $");
|
||||
__RCSID("$NetBSD: shutdown.c,v 1.42 2004/11/05 22:46:31 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -417,7 +417,7 @@ getoffset(timearg)
|
||||
}
|
||||
|
||||
if (*timearg == '+') { /* +minutes */
|
||||
if (!isdigit(*++timearg))
|
||||
if (!isdigit((unsigned char)*++timearg))
|
||||
badtime();
|
||||
offset = atoi(timearg) * 60;
|
||||
shuttime = now + offset;
|
||||
@ -426,7 +426,7 @@ getoffset(timearg)
|
||||
|
||||
/* handle hh:mm by getting rid of the colon */
|
||||
for (p = timearg; *p; ++p)
|
||||
if (!isascii(*p) || !isdigit(*p)) {
|
||||
if (!isascii(*p) || !isdigit((unsigned char)*p)) {
|
||||
if (*p == ':' && strlen(p) == 3) {
|
||||
p[0] = p[1];
|
||||
p[1] = p[2];
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: usbhidaction.c,v 1.16 2004/10/31 21:10:59 augustss Exp $ */
|
||||
/* $NetBSD: usbhidaction.c,v 1.17 2004/11/05 22:43:47 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: usbhidaction.c,v 1.16 2004/10/31 21:10:59 augustss Exp $");
|
||||
__RCSID("$NetBSD: usbhidaction.c,v 1.17 2004/11/05 22:43:47 dsl Exp $");
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
@ -141,7 +141,7 @@ main(int argc, char **argv)
|
||||
|
||||
if (dev[0] != '/') {
|
||||
snprintf(devnamebuf, sizeof(devnamebuf), "/dev/%s%s",
|
||||
isdigit(dev[0]) ? "uhid" : "", dev);
|
||||
isdigit((unsigned char)dev[0]) ? "uhid" : "", dev);
|
||||
dev = devnamebuf;
|
||||
}
|
||||
|
||||
@ -405,7 +405,7 @@ docmd(struct command *cmd, int value, const char *hid, int argc, char **argv)
|
||||
if (*p == '$') {
|
||||
p++;
|
||||
len = &cmdbuf[SIZE-1] - q;
|
||||
if (isdigit(*p)) {
|
||||
if (isdigit((unsigned char)*p)) {
|
||||
n = strtol(p, &p, 10) - 1;
|
||||
if (n >= 0 && n < argc) {
|
||||
strncpy(q, argv[n], len);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: usbhid.c,v 1.26 2004/10/31 07:36:19 dsainty Exp $ */
|
||||
/* $NetBSD: usbhid.c,v 1.27 2004/11/05 22:44:57 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
@ -38,7 +38,7 @@
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: usbhid.c,v 1.26 2004/10/31 07:36:19 dsainty Exp $");
|
||||
__RCSID("$NetBSD: usbhid.c,v 1.27 2004/11/05 22:44:57 dsl Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -941,7 +941,7 @@ main(int argc, char **argv)
|
||||
|
||||
if (dev[0] != '/') {
|
||||
snprintf(devnamebuf, sizeof(devnamebuf), "/dev/%s%s",
|
||||
isdigit(dev[0]) ? "uhid" : "", dev);
|
||||
isdigit((unsigned char)dev[0]) ? "uhid" : "", dev);
|
||||
dev = devnamebuf;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user