diff options
| author | Ezra Peisach <epeisach@mit.edu> | 2001-06-18 19:19:46 +0000 |
|---|---|---|
| committer | Ezra Peisach <epeisach@mit.edu> | 2001-06-18 19:19:46 +0000 |
| commit | 6a11ad7d57a4163c8bae998f56bfb334a161fd39 (patch) | |
| tree | 5acb52c62d905af42ab4f5b47d9ca3feb78d2e59 /src | |
| parent | 2d18d5b53a79d15e6cfb1370cfa129549613c9fd (diff) | |
| download | krb5-6a11ad7d57a4163c8bae998f56bfb334a161fd39.tar.gz krb5-6a11ad7d57a4163c8bae998f56bfb334a161fd39.tar.xz krb5-6a11ad7d57a4163c8bae998f56bfb334a161fd39.zip | |
* 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
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 3254abe7d5..591b67de7c 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 aa10ceacd7..3e94b022cf 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 ccab0afe96..22bede0b20 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); } /* |
