From 0e51d6c232b720971afe98ed6dcc4c0c8d65a700 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Mon, 18 Jun 2001 18:52:04 +0000 Subject: [PATCH] * 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 --- src/lib/krb4/ChangeLog | 1 + src/lib/krb4/kparse.c | 4 ++-- src/lib/krb4/realmofhost.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index e5510d499..17c0be0d3 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,6 +1,7 @@ 2001-06-18 Ezra Peisach * kparse.c (strutol): Cast argument to isupper()/tolower() to int. + * realmofhost.c (krb_realmofhost): Likewise. 2001-06-18 Ezra Peisach diff --git a/src/lib/krb4/kparse.c b/src/lib/krb4/kparse.c index fb3c2435c..c60cbbcfd 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 d795dd709..684670c6b 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); } -- 2.26.2