summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2001-06-18 18:52:04 +0000
committerEzra Peisach <epeisach@mit.edu>2001-06-18 18:52:04 +0000
commit0e51d6c232b720971afe98ed6dcc4c0c8d65a700 (patch)
tree23bd3f4b3e9997cead9095e42470b0b438069cb2
parent0306bd7bf11a84774942176837c439e4a1a7275b (diff)
downloadkrb5-0e51d6c232b720971afe98ed6dcc4c0c8d65a700.tar.gz
krb5-0e51d6c232b720971afe98ed6dcc4c0c8d65a700.tar.xz
krb5-0e51d6c232b720971afe98ed6dcc4c0c8d65a700.zip
* kparse.c (strutol): Cast argument to isupper()/tolower() to int.
* realmofhost.c (krb_realmofhost): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13369 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r--src/lib/krb4/ChangeLog1
-rw-r--r--src/lib/krb4/kparse.c4
-rw-r--r--src/lib/krb4/realmofhost.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog
index e5510d4995..17c0be0d38 100644
--- a/src/lib/krb4/ChangeLog
+++ b/src/lib/krb4/ChangeLog
@@ -1,6 +1,7 @@
2001-06-18 Ezra Peisach <epeisach@mit.edu>
* kparse.c (strutol): Cast argument to isupper()/tolower() to int.
+ * realmofhost.c (krb_realmofhost): Likewise.
2001-06-18 Ezra Peisach <epeisach@mit.edu>
diff --git a/src/lib/krb4/kparse.c b/src/lib/krb4/kparse.c
index fb3c2435cc..c60cbbcfd5 100644
--- a/src/lib/krb4/kparse.c
+++ b/src/lib/krb4/kparse.c
@@ -562,8 +562,8 @@ static char * strutol( start )
{
char *q;
for (q=start; *q; q++)
- if (isupper(*q))
- *q=tolower(*q);
+ if (isupper((int) *q))
+ *q=tolower((int) *q);
return(start);
}
diff --git a/src/lib/krb4/realmofhost.c b/src/lib/krb4/realmofhost.c
index d795dd7097..684670c6be 100644
--- a/src/lib/krb4/realmofhost.c
+++ b/src/lib/krb4/realmofhost.c
@@ -105,7 +105,7 @@ krb_realmofhost(host)
/* Upper-case realm */
for (cp = ret_realm; *cp; cp++)
if (islower((int) (*cp)))
- *cp = toupper(*cp);
+ *cp = toupper((int) *cp);
} else {
krb_get_lrealm(ret_realm, 1);
}