char -> unsigned char
This commit is contained in:
parent
6659e7174e
commit
ad5d7c5f6d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: unifdef.c,v 1.6 1998/10/08 01:31:59 wsanchez Exp $ */
|
||||
/* $NetBSD: unifdef.c,v 1.7 1998/12/19 23:22:51 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1985, 1993
|
||||
|
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1985, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)unifdef.c 8.1 (Berkeley) 6/6/93";
|
||||
#endif
|
||||
__RCSID("$NetBSD: unifdef.c,v 1.6 1998/10/08 01:31:59 wsanchez Exp $");
|
||||
__RCSID("$NetBSD: unifdef.c,v 1.7 1998/12/19 23:22:51 christos Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
|
@ -354,7 +354,7 @@ doif(thissym, inif, prevreject, depth)
|
|||
}
|
||||
}
|
||||
}
|
||||
#define endsym(c) (!isalpha (c) && !isdigit (c) && c != '_')
|
||||
#define endsym(c) (!isalpha ((unsigned char)c) && !isdigit ((unsigned char)c) && c != '_')
|
||||
|
||||
#define MAXLINE 256
|
||||
char tline[MAXLINE] BSS;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: uniq.c,v 1.8 1997/10/20 02:27:05 lukem Exp $ */
|
||||
/* $NetBSD: uniq.c,v 1.9 1998/12/19 23:23:49 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)uniq.c 8.3 (Berkeley) 5/4/95";
|
||||
#endif
|
||||
__RCSID("$NetBSD: uniq.c,v 1.8 1997/10/20 02:27:05 lukem Exp $");
|
||||
__RCSID("$NetBSD: uniq.c,v 1.9 1998/12/19 23:23:49 christos Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <err.h>
|
||||
|
@ -194,7 +194,7 @@ skip(str)
|
|||
int infield, nchars, nfields;
|
||||
|
||||
for (nfields = numfields, infield = 0; nfields && *str; ++str)
|
||||
if (isspace(*str)) {
|
||||
if (isspace((unsigned char)*str)) {
|
||||
if (infield) {
|
||||
infield = 0;
|
||||
--nfields;
|
||||
|
@ -230,7 +230,7 @@ obsolete(argv)
|
|||
return;
|
||||
} else if (ap[1] == '-')
|
||||
return;
|
||||
if (!isdigit(ap[1]))
|
||||
if (!isdigit((unsigned char)ap[1]))
|
||||
continue;
|
||||
/*
|
||||
* Digit signifies an old-style option. Malloc space for dash,
|
||||
|
|
Loading…
Reference in New Issue