sign-compare fix

This commit is contained in:
lukem 2009-02-12 04:38:52 +00:00
parent 102c672a15
commit 2d59e2af1e
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: svc_vc.c,v 1.21 2008/04/25 17:44:44 christos Exp $ */ /* $NetBSD: svc_vc.c,v 1.22 2009/02/12 04:38:52 lukem Exp $ */
/* /*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@ -35,7 +35,7 @@
static char *sccsid = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro"; static char *sccsid = "@(#)svc_tcp.c 1.21 87/08/11 Copyr 1984 Sun Micro";
static char *sccsid = "@(#)svc_tcp.c 2.2 88/08/01 4.0 RPCSRC"; static char *sccsid = "@(#)svc_tcp.c 2.2 88/08/01 4.0 RPCSRC";
#else #else
__RCSID("$NetBSD: svc_vc.c,v 1.21 2008/04/25 17:44:44 christos Exp $"); __RCSID("$NetBSD: svc_vc.c,v 1.22 2009/02/12 04:38:52 lukem Exp $");
#endif #endif
#endif #endif
@ -371,7 +371,7 @@ again:
goto out; goto out;
if (fcntl(sock, F_SETFL, flags | O_NONBLOCK) == -1) if (fcntl(sock, F_SETFL, flags | O_NONBLOCK) == -1)
goto out; goto out;
if (cd->recvsize > cd->maxrec) if (cd->recvsize > (u_int)cd->maxrec)
cd->recvsize = cd->maxrec; cd->recvsize = cd->maxrec;
cd->nonblock = TRUE; cd->nonblock = TRUE;
__xdrrec_setnonblock(&cd->xdrs, cd->maxrec); __xdrrec_setnonblock(&cd->xdrs, cd->maxrec);