From: Ezra Peisach Date: Wed, 10 Oct 2001 22:23:55 +0000 (+0000) Subject: * localaddr.c (krb5_os_localaddr_profile): Cast argument to X-Git-Tag: krb5-1.3-alpha1~1047 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b8a3aeda14f06dfa8c18b0fe68acf938a9ada2c2;p=krb5.git * localaddr.c (krb5_os_localaddr_profile): Cast argument to isspace() to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13796 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index a39c1f1f6..183cd6a63 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2001-10-10 Ezra Peisach + + * localaddr.c (krb5_os_localaddr_profile): Cast argument to + isspace() to int. + 2001-10-09 Ken Raeburn * os-proto.h: Make prototypes unconditional. diff --git a/src/lib/krb5/os/localaddr.c b/src/lib/krb5/os/localaddr.c index 021d2b6af..a481945f0 100644 --- a/src/lib/krb5/os/localaddr.c +++ b/src/lib/krb5/os/localaddr.c @@ -850,7 +850,7 @@ krb5_os_localaddr_profile (krb5_context context, struct localaddr_data *datap) #endif for (cp = *iter, next = 0; *cp; cp = next) { - while (isspace (*cp) || *cp == ',') + while (isspace ((int) *cp) || *cp == ',') cp++; if (*cp == 0) break; @@ -859,7 +859,7 @@ krb5_os_localaddr_profile (krb5_context context, struct localaddr_data *datap) fprintf (stderr, " addr found in '%s'\n", cp); #endif this = cp; - while (*cp != 0 && !isspace(*cp) && *cp != ',') + while (*cp != 0 && !isspace((int) *cp) && *cp != ',') cp++; if (*cp != 0) { next = cp + 1;