From ed7267181ab5af027593cdfc25c7d6dc95e5f6e4 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 30 Dec 2008 14:04:51 +0000 Subject: [PATCH] Signed/unsigned fixes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21639 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/rpc/clnt_perror.c | 4 ++-- src/lib/rpc/clnt_simple.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/lib/rpc/clnt_perror.c b/src/lib/rpc/clnt_perror.c index 0a52885a3..09b432294 100644 --- a/src/lib/rpc/clnt_perror.c +++ b/src/lib/rpc/clnt_perror.c @@ -233,7 +233,7 @@ static struct rpc_errtab rpc_errlist[] = { char * clnt_sperrno(enum clnt_stat stat) { - int i; + unsigned int i; for (i = 0; i < sizeof(rpc_errlist)/sizeof(struct rpc_errtab); i++) { if (rpc_errlist[i].status == stat) { @@ -339,7 +339,7 @@ static struct auth_errtab auth_errlist[] = { static char * auth_errmsg(enum auth_stat stat) { - int i; + unsigned int i; for (i = 0; i < sizeof(auth_errlist)/sizeof(struct auth_errtab); i++) { if (auth_errlist[i].status == stat) { diff --git a/src/lib/rpc/clnt_simple.c b/src/lib/rpc/clnt_simple.c index 65ae5c176..3649c8048 100644 --- a/src/lib/rpc/clnt_simple.c +++ b/src/lib/rpc/clnt_simple.c @@ -51,7 +51,9 @@ static char sccsid[] = "@(#)clnt_simple.c 1.35 87/08/11 Copyr 1984 Sun Micro"; static struct callrpc_private { CLIENT *client; SOCKET socket; - int oldprognum, oldversnum, valid; + rpcprog_t oldprognum; + rpcvers_t oldversnum; + int valid; char *oldhost; } *callrpc_private; -- 2.26.2