]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Cleaned up a warning in rpcdispatch.c
authorSteve Dickson <steved@redhat.com>
Sat, 5 Mar 2011 21:17:01 +0000 (16:17 -0500)
committerSteve Dickson <steved@redhat.com>
Sat, 5 Mar 2011 21:23:18 +0000 (16:23 -0500)
rpcdispatch.c:40:20: warning: comparison between signed and unsigned
integer expressions

Signed-off-by: Steve Dickson <steved@redhat.com>
support/include/rpcmisc.h
support/nfs/rpcdispatch.c

index c5847fa261fd2635a6499ec1323d8a8b5bbf34e2..0b06457bbb74d1d8386fd4c343fd825caa804be8 100644 (file)
@@ -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) \
index 5be282441e06c4007bec858169e6d76ab35634c6..f7c27c985d0c04248f48245fab03b98a052fbac6 100644 (file)
@@ -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;
        }