diff options
author | mbr <mbr@FreeBSD.org> | 2003-01-27 22:46:50 +0000 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2003-01-27 22:46:50 +0000 |
commit | 48a0e2255ab4aaf2345be7dc52f230a6e25c3d53 (patch) | |
tree | 65c73c6c07a82449f138502bb8ae158be23cfe48 /lib/libc/rpc | |
parent | 8273c63b654cbd70a6e1e5c8d3f41fcc9f99c87b (diff) | |
download | FreeBSD-src-48a0e2255ab4aaf2345be7dc52f230a6e25c3d53.zip FreeBSD-src-48a0e2255ab4aaf2345be7dc52f230a6e25c3d53.tar.gz |
Fix signed/unsigned comparison warnings.
Reviewed by: phk
Obtained from: NetBSD
Diffstat (limited to 'lib/libc/rpc')
-rw-r--r-- | lib/libc/rpc/svc_dg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/rpc/svc_dg.c b/lib/libc/rpc/svc_dg.c index 7ff4c59..56955f6 100644 --- a/lib/libc/rpc/svc_dg.c +++ b/lib/libc/rpc/svc_dg.c @@ -181,7 +181,7 @@ svc_dg_recv(xprt, msg) struct sockaddr_storage ss; socklen_t alen; size_t replylen; - int rlen; + ssize_t rlen; again: alen = sizeof (struct sockaddr_storage); @@ -189,7 +189,7 @@ again: (struct sockaddr *)(void *)&ss, &alen); if (rlen == -1 && errno == EINTR) goto again; - if (rlen == -1 || (rlen < 4 * sizeof (u_int32_t))) + if (rlen == -1 || (rlen < (ssize_t)(4 * sizeof (u_int32_t)))) return (FALSE); if (xprt->xp_rtaddr.len < alen) { if (xprt->xp_rtaddr.len != 0) @@ -237,7 +237,7 @@ svc_dg_reply(xprt, msg) slen = XDR_GETPOS(xdrs); if (_sendto(xprt->xp_fd, rpc_buffer(xprt), slen, 0, (struct sockaddr *)xprt->xp_rtaddr.buf, - (socklen_t)xprt->xp_rtaddr.len) == slen) { + (socklen_t)xprt->xp_rtaddr.len) == (ssize_t) slen) { stat = TRUE; if (su->su_cache) cache_set(xprt, slen); |