From: Ezra Peisach Date: Mon, 18 Jun 2001 19:19:46 +0000 (+0000) Subject: * commands.c: Cast argument to isspace() to int X-Git-Tag: krb5-1.3-alpha1~1386 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6a11ad7d57a4163c8bae998f56bfb334a161fd39;p=krb5.git * commands.c: Cast argument to isspace() to int * telnet.c (mklist): Cast argument to islower()/toupper() to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13381 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnet/ChangeLog b/src/appl/telnet/telnet/ChangeLog index 3254abe7d..591b67de7 100644 --- a/src/appl/telnet/telnet/ChangeLog +++ b/src/appl/telnet/telnet/ChangeLog @@ -1,3 +1,9 @@ +2001-06-18 Ezra Peisach + + * commands.c: Cast argument to isspace() to int. + + * telnet.c (mklist): Cast argument to islower()/toupper() to int. + 2001-06-08 Ezra Peisach * main.c: Include unistd.h (if present) for getopt() prototype. diff --git a/src/appl/telnet/telnet/commands.c b/src/appl/telnet/telnet/commands.c index aa10ceacd..3e94b022c 100644 --- a/src/appl/telnet/telnet/commands.c +++ b/src/appl/telnet/telnet/commands.c @@ -158,7 +158,7 @@ makeargv() } while ((c = *cp)) { register int inquote = 0; - while (isspace(c)) + while (isspace((int) c)) c = *++cp; if (c == '\0') break; @@ -180,7 +180,7 @@ makeargv() } else if (c == '\'') { inquote = '\''; continue; - } else if (isspace(c)) + } else if (isspace((int) c)) break; } *cp2++ = c; @@ -2906,11 +2906,11 @@ cmdrc(m1, m2) if (line[0] == '#') continue; if (gotmachine) { - if (!isspace(line[0])) + if (!isspace((int) line[0])) gotmachine = 0; } if (gotmachine == 0) { - if (isspace(line[0])) + if (isspace((int) line[0])) continue; if (strncasecmp(line, m1, l1) == 0) strncpy(line, &line[l1], sizeof(line) - l1); diff --git a/src/appl/telnet/telnet/telnet.c b/src/appl/telnet/telnet/telnet.c index ccab0afe9..22bede0b2 100644 --- a/src/appl/telnet/telnet/telnet.c +++ b/src/appl/telnet/telnet/telnet.c @@ -707,8 +707,8 @@ mklist(buf, name) */ if ((c == ' ') || !isascii(c)) n = 1; - else if (islower(c)) - *cp = toupper(c); + else if (islower((int) c)) + *cp = toupper((int) c); } /*