summaryrefslogtreecommitdiffstats
path: root/src/appl
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-06-16 06:58:42 +0000
committerKen Raeburn <raeburn@mit.edu>2006-06-16 06:58:42 +0000
commit0cac95ff79f6cc5d21bc85d76e91615c50228ee9 (patch)
tree73fc5a041837242f1a895b22ce91a532d196970a /src/appl
parent31cd6a4ffa4031ab8e9255c7c626736faa42a1d0 (diff)
Change a bunch of calls to ctype macros (those cited by Jeff, and a
few others) to cast the character values to unsigned char. ticket: 3445 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18156 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl')
-rw-r--r--src/appl/gssftp/ftp/cmds.c12
-rw-r--r--src/appl/telnet/telnet/telnet.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/appl/gssftp/ftp/cmds.c b/src/appl/gssftp/ftp/cmds.c
index b9cb2a2a2..3d851937b 100644
--- a/src/appl/gssftp/ftp/cmds.c
+++ b/src/appl/gssftp/ftp/cmds.c
@@ -725,14 +725,14 @@ void mput(argc, argv)
if (mflag && confirm(argv[0], cp)) {
tp = cp;
if (mcase) {
- while (*tp && !islower((int) (*tp))) {
+ while (*tp && !islower((unsigned char) (*tp))) {
tp++;
}
if (!*tp) {
tp = cp;
tp2 = tmpbuf;
while ((*tp2 = *tp) != 0) {
- if (isupper((int) *tp2)) {
+ if (isupper((unsigned char) *tp2)) {
*tp2 = 'a' + *tp2 - 'A';
}
tp++;
@@ -864,14 +864,14 @@ usage:
if (loc && mcase) {
char *tp = argv[1], *tp2, tmpbuf[MAXPATHLEN];
- while (*tp && !islower((int) *tp)) {
+ while (*tp && !islower((unsigned char) *tp)) {
tp++;
}
if (!*tp) {
tp = argv[2];
tp2 = tmpbuf;
while ((*tp2 = *tp) != 0) {
- if (isupper((int) *tp2)) {
+ if (isupper((unsigned char) *tp2)) {
*tp2 = 'a' + *tp2 - 'A';
}
tp++;
@@ -994,14 +994,14 @@ void mget(argc, argv)
if (mflag && confirm(argv[0], cp)) {
tp = cp;
if (mcase) {
- while (*tp && !islower((int) *tp)) {
+ while (*tp && !islower((unsigned char) *tp)) {
tp++;
}
if (!*tp) {
tp = cp;
tp2 = tmpbuf;
while ((*tp2 = *tp) != 0) {
- if (isupper((int) *tp2)) {
+ if (isupper((unsigned char) *tp2)) {
*tp2 = 'a' + *tp2 - 'A';
}
tp++;
diff --git a/src/appl/telnet/telnet/telnet.c b/src/appl/telnet/telnet/telnet.c
index 6215fc1e9..a44df7ab5 100644
--- a/src/appl/telnet/telnet/telnet.c
+++ b/src/appl/telnet/telnet/telnet.c
@@ -717,8 +717,8 @@ mklist(buf, name)
*/
if ((c == ' ') || !isascii(c))
n = 1;
- else if (islower((int) c))
- *cp = toupper((int) c);
+ else if (islower((unsigned char) c))
+ *cp = toupper((unsigned char) c);
}
/*