* commands.c: Cast argument to isspace() to int
authorEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 19:19:46 +0000 (19:19 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 19:19:46 +0000 (19:19 +0000)
* 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

src/appl/telnet/telnet/ChangeLog
src/appl/telnet/telnet/commands.c
src/appl/telnet/telnet/telnet.c

index 3254abe7d59596bdc00e7df78d15af9fd30add81..591b67de7c509b674faca682e4c3600d4cf8a4d4 100644 (file)
@@ -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.
index aa10ceacd724451c2c383e7ab29cf3900ca9b9a1..3e94b022cf59c531977fa2c202ae83fb7c9a376d 100644 (file)
@@ -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);
index ccab0afe96f00343efaedc4414a6cf2bb17d36ed..22bede0b2096fdafd94ab96f5439b75414afd302 100644 (file)
@@ -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);
        }
        
        /*