From ccb41f4d18553d4f494c51929ed7f133faf6b7b8 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 13 May 1999 15:48:18 +0000 Subject: [PATCH] fix typo uid_t -> gid_t add unsigned char cast to ctype macros --- gnu/usr.bin/man/man/man.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gnu/usr.bin/man/man/man.c b/gnu/usr.bin/man/man/man.c index 6407939c54c2..72a9fd589ae4 100644 --- a/gnu/usr.bin/man/man/man.c +++ b/gnu/usr.bin/man/man/man.c @@ -106,8 +106,8 @@ static char args[] = "M:P:S:adfhkp:w?"; #ifdef SETREUID uid_t ruid; uid_t euid; -uid_t rgid; -uid_t egid; +gid_t rgid; +gid_t egid; #endif int @@ -469,7 +469,7 @@ is_section (name) for (vs = section_list; *vs != NULL; vs++) if ((strcmp (*vs, name) == 0) - || (isdigit (name[0]) && strlen(name) == 1)) + || (isdigit ((unsigned char)name[0]) && strlen(name) == 1)) return strdup (name); return NULL; @@ -612,7 +612,7 @@ glob_for_file (path, section, name, cat) gf = glob_filename (pathname); - if ((gf == (char **) -1 || *gf == NULL) && isdigit (*section)) + if ((gf == (char **) -1 || *gf == NULL) && isdigit ((unsigned char)*section)) { if (cat) snprintf (pathname, sizeof(pathname), "%s/cat%s/%s.%c*", path, section, name, *section); @@ -621,7 +621,7 @@ glob_for_file (path, section, name, cat) gf = glob_filename (pathname); } - if ((gf == (char **) -1 || *gf == NULL) && isdigit (*section)) + if ((gf == (char **) -1 || *gf == NULL) && isdigit ((unsigned char)*section)) { if (cat) snprintf (pathname, sizeof(pathname), "%s/cat%s/%s.0*", path, section, name);