mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
Add (unsigned char) cast to ctype macros
This commit is contained in:
parent
ddcab7eeac
commit
4aeece6a14
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116137
@ -201,7 +201,7 @@ directory_type(char *dir)
|
||||
p += 3;
|
||||
if (*p == '\0')
|
||||
return TOP_LEVEL_DIR;
|
||||
while (isalnum(*p) || *p == '_') {
|
||||
while (isalnum((unsigned char)*p) || *p == '_') {
|
||||
if (*++p == '\0')
|
||||
return MAN_SECTION_DIR;
|
||||
}
|
||||
@ -222,7 +222,7 @@ is_manpage_name(char *name)
|
||||
char *n = name;
|
||||
|
||||
while (*n != '\0') {
|
||||
if (!isalnum(*n)) {
|
||||
if (!isalnum((unsigned char)*n)) {
|
||||
switch (*n) {
|
||||
case '_':
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user