Add (unsigned char) cast to ctype functions
This commit is contained in:
parent
06dd932c49
commit
108eb2ab42
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gnum4.c,v 1.4 2004/06/20 22:20:15 jmc Exp $ */
|
||||
/* $NetBSD: gnum4.c,v 1.5 2004/10/30 20:39:35 dsl Exp $ */
|
||||
/* $OpenBSD: gnum4.c,v 1.15 2001/10/13 20:18:48 espie Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -320,7 +320,7 @@ add_replace(string, re, replace, pm)
|
|||
p++;
|
||||
continue;
|
||||
}
|
||||
if (isdigit(p[1])) {
|
||||
if (isdigit((unsigned char)p[1])) {
|
||||
add_sub(*(++p) - '0', string, re, pm);
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: support.c,v 1.11 2003/10/31 01:25:54 ross Exp $ */
|
||||
/* $NetBSD: support.c,v 1.12 2004/10/30 20:44:39 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)aux.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: support.c,v 1.11 2003/10/31 01:25:54 ross Exp $");
|
||||
__RCSID("$NetBSD: support.c,v 1.12 2004/10/30 20:44:39 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -235,10 +235,7 @@ istrcpy(char *dest, char *src)
|
|||
{
|
||||
|
||||
do {
|
||||
if (isupper((unsigned char)*src))
|
||||
*dest++ = tolower(*src);
|
||||
else
|
||||
*dest++ = *src;
|
||||
*dest++ = tolower((unsigned char)*src);
|
||||
} while (*src++ != 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: arch.c,v 1.42 2004/07/01 20:38:09 jmc Exp $ */
|
||||
/* $NetBSD: arch.c,v 1.43 2004/10/30 20:49:05 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
|
@ -69,14 +69,14 @@
|
|||
*/
|
||||
|
||||
#ifndef MAKE_NATIVE
|
||||
static char rcsid[] = "$NetBSD: arch.c,v 1.42 2004/07/01 20:38:09 jmc Exp $";
|
||||
static char rcsid[] = "$NetBSD: arch.c,v 1.43 2004/10/30 20:49:05 dsl Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)arch.c 8.2 (Berkeley) 1/2/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: arch.c,v 1.42 2004/07/01 20:38:09 jmc Exp $");
|
||||
__RCSID("$NetBSD: arch.c,v 1.43 2004/10/30 20:49:05 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
|
@ -671,7 +671,7 @@ ArchStatMember(char *archive, char *member, Boolean hash)
|
|||
* first <namelen> bytes of the file
|
||||
*/
|
||||
if (strncmp(memName, AR_EFMT1, sizeof(AR_EFMT1) - 1) == 0 &&
|
||||
isdigit(memName[sizeof(AR_EFMT1) - 1])) {
|
||||
isdigit((unsigned char)memName[sizeof(AR_EFMT1) - 1])) {
|
||||
|
||||
unsigned int elen = atoi(&memName[sizeof(AR_EFMT1)-1]);
|
||||
|
||||
|
@ -923,7 +923,7 @@ ArchFindMember(char *archive, char *member, struct ar_hdr *arhPtr,
|
|||
*/
|
||||
if (strncmp(arhPtr->ar_name, AR_EFMT1,
|
||||
sizeof(AR_EFMT1) - 1) == 0 &&
|
||||
isdigit(arhPtr->ar_name[sizeof(AR_EFMT1) - 1])) {
|
||||
isdigit((unsigned char)arhPtr->ar_name[sizeof(AR_EFMT1) - 1])) {
|
||||
|
||||
unsigned int elen = atoi(&arhPtr->ar_name[sizeof(AR_EFMT1)-1]);
|
||||
char ename[MAXPATHLEN];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: var.c,v 1.90 2004/07/01 20:38:09 jmc Exp $ */
|
||||
/* $NetBSD: var.c,v 1.91 2004/10/30 20:49:05 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1989, 1990, 1993
|
||||
|
@ -69,14 +69,14 @@
|
|||
*/
|
||||
|
||||
#ifndef MAKE_NATIVE
|
||||
static char rcsid[] = "$NetBSD: var.c,v 1.90 2004/07/01 20:38:09 jmc Exp $";
|
||||
static char rcsid[] = "$NetBSD: var.c,v 1.91 2004/10/30 20:49:05 dsl Exp $";
|
||||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)var.c 8.3 (Berkeley) 3/19/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: var.c,v 1.90 2004/07/01 20:38:09 jmc Exp $");
|
||||
__RCSID("$NetBSD: var.c,v 1.91 2004/10/30 20:49:05 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif
|
||||
|
@ -2630,7 +2630,7 @@ Var_Parse(const char *str, GNode *ctxt, Boolean err, int *lengthPtr,
|
|||
cp = tstr + 4;
|
||||
break;
|
||||
default:
|
||||
if (isdigit(tstr[3])) {
|
||||
if (isdigit((unsigned char)tstr[3])) {
|
||||
char *ep;
|
||||
|
||||
parsestate.varSpace =
|
||||
|
|
Loading…
Reference in New Issue