summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/krb5/os/ChangeLog7
-rw-r--r--src/lib/krb5/os/hst_realm.c4
-rw-r--r--src/lib/krb5/os/sn2princ.c2
3 files changed, 10 insertions, 3 deletions
diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog
index e9f873e8c4..1719e61ff8 100644
--- a/src/lib/krb5/os/ChangeLog
+++ b/src/lib/krb5/os/ChangeLog
@@ -1,3 +1,10 @@
+2001-07-06 Ezra Peisach <epeisach@mit.edu>
+
+ * 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 <epeisach@mit.edu>
* 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 bfb1865e2d..9ac5e0b23a 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 16b52df074..c23959fcb7 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