From 514cd6dce601065b7f364a32118f39565a417b2c Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Fri, 6 Jul 2001 18:26:50 +0000 Subject: [PATCH] * sn2princ.c (krb5_sname_to_principal): Cast tolower argument to int * hst_realm.c (krb5_get_host_realm): Cast argument to toupper and tolower to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13576 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 7 +++++++ src/lib/krb5/os/hst_realm.c | 4 ++-- src/lib/krb5/os/sn2princ.c | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index e9f873e8c..1719e61ff 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,10 @@ +2001-07-06 Ezra Peisach + + * sn2princ.c (krb5_sname_to_principal): Cast tolower argument to int. + + * hst_realm.c (krb5_get_host_realm): Cast argument to toupper and + tolower to int. + 2001-06-21 Ezra Peisach * t_std_conf.c (test_locate_kdc): Get rid of unused variable. diff --git a/src/lib/krb5/os/hst_realm.c b/src/lib/krb5/os/hst_realm.c index bfb1865e2..9ac5e0b23 100644 --- a/src/lib/krb5/os/hst_realm.c +++ b/src/lib/krb5/os/hst_realm.c @@ -265,7 +265,7 @@ krb5_get_host_realm(context, host, realmsp) for (cp = local_host; *cp; cp++) { if (isupper((int) (*cp))) - *cp = tolower(*cp); + *cp = tolower((int) *cp); } l = strlen(local_host); /* strip off trailing dot */ @@ -348,7 +348,7 @@ krb5_get_host_realm(context, host, realmsp) /* Assume the realm name is upper case */ for (cp = realm; *cp; cp++) if (islower((int) (*cp))) - *cp = toupper(*cp); + *cp = toupper((int) *cp); } else { /* We are defaulting to the local realm */ retval = krb5_get_default_realm(context, &realm); diff --git a/src/lib/krb5/os/sn2princ.c b/src/lib/krb5/os/sn2princ.c index 16b52df07..c23959fcb 100644 --- a/src/lib/krb5/os/sn2princ.c +++ b/src/lib/krb5/os/sn2princ.c @@ -100,7 +100,7 @@ krb5_sname_to_principal(context, hostname, sname, type, ret_princ) if (type == KRB5_NT_SRV_HST) for (cp = remote_host; *cp; cp++) if (isupper((int) (*cp))) - *cp = tolower(*cp); + *cp = tolower((int) (*cp)); /* * Windows NT5's broken resolver gratuitously tacks on a -- 2.26.2