From edb9b7f2ab9806afb9af31eabeb505fe454c51df Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Sat, 5 Mar 2011 16:17:01 -0500 Subject: [PATCH] Cleaned up a warning in rpcdispatch.c rpcdispatch.c:40:20: warning: comparison between signed and unsigned integer expressions Signed-off-by: Steve Dickson --- support/include/rpcmisc.h | 2 +- support/nfs/rpcdispatch.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5