diff options
| author | Greg Hudson <ghudson@mit.edu> | 2009-11-02 18:00:40 +0000 |
|---|---|---|
| committer | Greg Hudson <ghudson@mit.edu> | 2009-11-02 18:00:40 +0000 |
| commit | 5bf926ba4c8047b5dec75be2277d5f9b78fc04c2 (patch) | |
| tree | 31aaaf73a3ccb55e3ec4a67d710203253fb2294c /src/lib/rpc | |
| parent | 36d48179639fcf05a250ed973eaebfa3d4348a25 (diff) | |
| download | krb5-5bf926ba4c8047b5dec75be2277d5f9b78fc04c2.tar.gz krb5-5bf926ba4c8047b5dec75be2277d5f9b78fc04c2.tar.xz krb5-5bf926ba4c8047b5dec75be2277d5f9b78fc04c2.zip | |
Clean up a bunch of signed/unsigned comparison warnings
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23120 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/rpc')
| -rw-r--r-- | src/lib/rpc/clnt_udp.c | 4 | ||||
| -rw-r--r-- | src/lib/rpc/pmap_rmt.c | 5 | ||||
| -rw-r--r-- | src/lib/rpc/svc_auth.c | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/rpc/clnt_udp.c b/src/lib/rpc/clnt_udp.c index a3876a70e..f125a6e44 100644 --- a/src/lib/rpc/clnt_udp.c +++ b/src/lib/rpc/clnt_udp.c @@ -237,7 +237,7 @@ clntudp_call( register struct cu_data *cu = (struct cu_data *)cl->cl_private; register XDR *xdrs; register int outlen; - register int inlen; + register ssize_t inlen; GETSOCKNAME_ARG3_TYPE fromlen; /* Assumes recvfrom uses same type */ #ifdef FD_SETSIZE fd_set readfds; @@ -344,7 +344,7 @@ send_again: cu->cu_error.re_errno = errno; return (cu->cu_error.re_status = RPC_CANTRECV); } - if (inlen < sizeof(uint32_t)) + if ((size_t)inlen < sizeof(uint32_t)) continue; /* see if reply transaction id matches sent id */ if (*((uint32_t *)(void *)(cu->cu_inbuf)) != diff --git a/src/lib/rpc/pmap_rmt.c b/src/lib/rpc/pmap_rmt.c index ee630d21a..78bc5b26a 100644 --- a/src/lib/rpc/pmap_rmt.c +++ b/src/lib/rpc/pmap_rmt.c @@ -248,7 +248,8 @@ clnt_broadcast( AUTH *unix_auth = authunix_create_default(); XDR xdr_stream; register XDR *xdrs = &xdr_stream; - int outlen, inlen, nets; + int outlen, nets; + ssize_t inlen; GETSOCKNAME_ARG3_TYPE fromlen; SOCKET sock; int on = 1; @@ -381,7 +382,7 @@ clnt_broadcast( stat = RPC_CANTRECV; goto done_broad; } - if (inlen < sizeof(uint32_t)) + if ((size_t)inlen < sizeof(uint32_t)) goto recv_again; /* * see if reply transaction id matches sent id. diff --git a/src/lib/rpc/svc_auth.c b/src/lib/rpc/svc_auth.c index de77e4d42..5e2881efc 100644 --- a/src/lib/rpc/svc_auth.c +++ b/src/lib/rpc/svc_auth.c @@ -53,7 +53,7 @@ static char sccsid[] = "@(#)svc_auth.c 2.1 88/08/07 4.0 RPCSRC; from 1.19 87/08/ */ static struct svcauthsw_type { - u_int flavor; + enum_t flavor; enum auth_stat (*authenticator)(struct svc_req *, struct rpc_msg *, bool_t *); } svcauthsw[] = { |
