diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/appl/telnet/telnet/ChangeLog | 6 | ||||
| -rw-r--r-- | src/appl/telnet/telnet/commands.c | 8 | ||||
| -rw-r--r-- | src/appl/telnet/telnet/telnet.c | 4 |
3 files changed, 12 insertions, 6 deletions
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 <epeisach@mit.edu> + + * commands.c: Cast argument to isspace() to int. + + * telnet.c (mklist): Cast argument to islower()/toupper() to int. + 2001-06-08 Ezra Peisach <epeisach@mit.edu> * 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); } /* |
