Signed/unsigned fixes
authorEzra Peisach <epeisach@mit.edu>
Tue, 30 Dec 2008 14:04:51 +0000 (14:04 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 30 Dec 2008 14:04:51 +0000 (14:04 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21639 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/rpc/clnt_perror.c
src/lib/rpc/clnt_simple.c

index 0a52885a3dd318d25abb7ae8ae474b36f7049cc4..09b432294fa0614f9d09cf495faa545c85992fd6 100644 (file)
@@ -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) {
index 65ae5c17651b62c2df4c4dc92054f2f6ea4ce6c3..3649c8048b3222e2b14ffec29f2cd013644511cd 100644 (file)
@@ -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;