NFS: Clean-up: fix a compiler warning in fs/nfs/super.c
authorChuck Lever <chuck.lever@oracle.com>
Sun, 1 Jul 2007 16:12:40 +0000 (12:12 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 11 Jul 2007 03:40:44 +0000 (23:40 -0400)
/home/cel/linux/fs/nfs/super.c: In function 'nfs_pseudoflavour_to_name':
/home/cel/linux/fs/nfs/super.c:270: warning: comparison between signed and unsigned

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c

index aab5cd61725d27f7b2cf287c30956722ea9a3aa6..6eac5bf911e3c8977914e598e0e3be02fc0f908e 100644 (file)
@@ -263,11 +263,11 @@ static const char *nfs_pseudoflavour_to_name(rpc_authflavor_t flavour)
                { RPC_AUTH_GSS_SPKM, "spkm" },
                { RPC_AUTH_GSS_SPKMI, "spkmi" },
                { RPC_AUTH_GSS_SPKMP, "spkmp" },
-               { -1, "unknown" }
+               { UINT_MAX, "unknown" }
        };
        int i;
 
-       for (i=0; sec_flavours[i].flavour != -1; i++) {
+       for (i = 0; sec_flavours[i].flavour != UINT_MAX; i++) {
                if (sec_flavours[i].flavour == flavour)
                        break;
        }