From: Ezra Peisach Date: Mon, 18 Jun 2001 19:15:57 +0000 (+0000) Subject: * gss-client.c (parse_oid): Cast argument to isdigit() to int X-Git-Tag: krb5-1.3-alpha1~1388 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1daecf97f0391d59dc124a1bada7b0aa9470724e;p=krb5.git * gss-client.c (parse_oid): Cast argument to isdigit() to int * gss-server.c (sign_server): Cast argument to isspace() to int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13379 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gss-sample/ChangeLog b/src/appl/gss-sample/ChangeLog index 65fdf368d..ecf441a49 100644 --- a/src/appl/gss-sample/ChangeLog +++ b/src/appl/gss-sample/ChangeLog @@ -1,3 +1,9 @@ +2001-06-18 Ezra Peisach + + * gss-client.c (parse_oid): Cast argument to isdigit() to int. + + * gss-server.c (sign_server): Cast argument to isspace() to int. + 2001-05-15 Danilo Almeida * gss-server.c (usage): Fix usage info *again* to reflect that diff --git a/src/appl/gss-sample/gss-client.c b/src/appl/gss-sample/gss-client.c index 88c065e8f..7fdc89fdc 100644 --- a/src/appl/gss-sample/gss-client.c +++ b/src/appl/gss-sample/gss-client.c @@ -20,10 +20,6 @@ * PERFORMANCE OF THIS SOFTWARE. */ -#if !defined(lint) && !defined(__CODECENTER__) -static char *rcsid = "$Header$"; -#endif - #include #include #include @@ -547,7 +543,7 @@ static void parse_oid(char *mechanism, gss_OID *oid) gss_buffer_desc tok; OM_uint32 maj_stat, min_stat; - if (isdigit(mechanism[0])) { + if (isdigit((int) mechanism[0])) { mechstr = malloc(strlen(mechanism)+5); if (!mechstr) { fprintf(stderr, "Couldn't allocate mechanism scratch!\n"); diff --git a/src/appl/gss-sample/gss-server.c b/src/appl/gss-sample/gss-server.c index 3373cdede..81c5f3593 100644 --- a/src/appl/gss-sample/gss-server.c +++ b/src/appl/gss-sample/gss-server.c @@ -20,10 +20,6 @@ * PERFORMANCE OF THIS SOFTWARE. */ -#if !defined(lint) && !defined(__CODECENTER__) -static char *rcsid = "$Header$"; -#endif - #include #ifdef _WIN32 #include @@ -457,8 +453,8 @@ static int sign_server(s, server_creds, export) if (log) { fprintf(log, "Received message: "); cp = msg_buf.value; - if ((isprint(cp[0]) || isspace(cp[0])) && - (isprint(cp[1]) || isspace(cp[1]))) { + if ((isprint((int) cp[0]) || isspace((int) cp[0])) && + (isprint((int) cp[1]) || isspace((int) cp[1]))) { fprintf(log, "\"%.*s\"\n", (int) msg_buf.length, (char *) msg_buf.value); } else {