summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib/rpc/clnt_perror.c4
-rw-r--r--src/lib/rpc/clnt_simple.c4
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;