1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

Fix signed/unsigned comparison warnings.

Reviewed by:		phk
Obtained from:		NetBSD
This commit is contained in:
Martin Blapp 2003-01-27 22:46:50 +00:00
parent 3c788545e8
commit 2e26eba4b9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109957

View File

@ -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 @@ svc_dg_recv(xprt, msg)
(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);