From: Ezra Peisach Date: Mon, 18 Jun 2001 18:52:04 +0000 (+0000) Subject: * kparse.c (strutol): Cast argument to isupper()/tolower() to int. X-Git-Tag: krb5-1.3-alpha1~1398 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0e51d6c232b720971afe98ed6dcc4c0c8d65a700;p=krb5.git * 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 --- 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); }