]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Removed warnings from rpcdispatch.c
authorSteve Dickson <steved@redhat.com>
Mon, 19 Jul 2010 16:17:24 +0000 (12:17 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 9 Aug 2010 13:57:02 +0000 (09:57 -0400)
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 <steved@redhat.com>
support/nfs/rpcdispatch.c

index 502fc5fe948c9238246e4741dc96d82eb942a089..984c646710a97f10d5d1fb443a7d4a3eba55e0c7 100644 (file)
@@ -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;
        }