--- a/usr/src/uts/common/fs/nfs/nfs_server.c Fri Aug 17 15:12:35 2012 -0400
+++ b/usr/src/uts/common/fs/nfs/nfs_server.c Sun Jul 08 03:19:56 2012 +0100
@@ -1452,11 +1452,11 @@
if (req->rq_vers == NFS_VERSION && req->rq_proc == RFS_LOOKUP) {
struct nfsdiropres *dr = (struct nfsdiropres *)res;
- if (dr->dr_status == WNFSERR_CLNT_FLAVOR)
+ if ((enum wnfsstat)dr->dr_status == WNFSERR_CLNT_FLAVOR)
return (TRUE);
} else if (req->rq_vers == NFS_V3 && req->rq_proc == NFSPROC3_LOOKUP) {
LOOKUP3res *resp = (LOOKUP3res *)res;
- if (resp->status == WNFSERR_CLNT_FLAVOR)
+ if ((enum wnfsstat)resp->status == WNFSERR_CLNT_FLAVOR)
return (TRUE);
}
return (FALSE);