From: Steve Dickson Date: Mon, 19 Jul 2010 16:17:24 +0000 (-0400) Subject: Removed warnings from rpcdispatch.c X-Git-Tag: nfs-utils-1-2-3-rc5~22 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=9c99b4633b185452614eb6c5630a30b30626a838;p=nfs-utils.git Removed warnings from rpcdispatch.c rpcdispatch.c: In function 'rpc_dispatch': rpcdispatch.c:30: warning: comparison between signed and unsigned integer expressions rpcdispatch.c:35: warning: comparison between signed and unsigned integer expressions Signed-off-by: Steve Dickson --- diff --git a/support/nfs/rpcdispatch.c b/support/nfs/rpcdispatch.c index 502fc5f..984c646 100644 --- a/support/nfs/rpcdispatch.c +++ b/support/nfs/rpcdispatch.c @@ -27,12 +27,12 @@ rpc_dispatch(struct svc_req *rqstp, SVCXPRT *transp, { struct rpc_dentry *dent; - if (rqstp->rq_vers > nvers) { + if (((int)rqstp->rq_vers) > nvers) { svcerr_progvers(transp, 1, nvers); return; } dtable += (rqstp->rq_vers - 1); - if (rqstp->rq_proc > dtable->nproc) { + if (((int)rqstp->rq_proc) > dtable->nproc) { svcerr_noproc(transp); return; }