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
@ -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 2.2 88/08/01 4.0 RPCSRC";
#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
@ -371,7 +371,7 @@ again:
goto out;
if (fcntl(sock, F_SETFL, flags | O_NONBLOCK) == -1)
goto out;
if (cd->recvsize > cd->maxrec)
if (cd->recvsize > (u_int)cd->maxrec)
cd->recvsize = cd->maxrec;
cd->nonblock = TRUE;
__xdrrec_setnonblock(&cd->xdrs, cd->maxrec);