From: Steve Dickson Date: Sat, 5 Mar 2011 21:17:01 +0000 (-0500) Subject: Cleaned up a warning in rpcdispatch.c X-Git-Tag: nfs-utils-1-2-4-rc6~2 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=edb9b7f2ab9806afb9af31eabeb505fe454c51df;hp=930323817b61877d61fb8ef57229013daa2e6091 Cleaned up a warning in rpcdispatch.c rpcdispatch.c:40:20: warning: comparison between signed and unsigned integer expressions Signed-off-by: Steve Dickson --- diff --git a/support/include/rpcmisc.h b/support/include/rpcmisc.h index c5847fa..0b06457 100644 --- a/support/include/rpcmisc.h +++ b/support/include/rpcmisc.h @@ -31,7 +31,7 @@ struct rpc_dentry { struct rpc_dtable { struct rpc_dentry *entries; - int nproc; + rpcproc_t nproc; }; #define dtable_ent(func, vers, arg_type, res_type) \ diff --git a/support/nfs/rpcdispatch.c b/support/nfs/rpcdispatch.c index 5be2824..f7c27c9 100644 --- a/support/nfs/rpcdispatch.c +++ b/support/nfs/rpcdispatch.c @@ -32,7 +32,7 @@ rpc_dispatch(struct svc_req *rqstp, SVCXPRT *transp, return; } dtable += (rqstp->rq_vers - 1); - if (((int)rqstp->rq_proc) > dtable->nproc) { + if (rqstp->rq_proc > dtable->nproc) { svcerr_noproc(transp); return; }