Remove warnings from nfsctl.c nfs-utils-1-2-3-rc5
authorSteve Dickson <steved@redhat.com>
Mon, 19 Jul 2010 16:12:52 +0000 (12:12 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 9 Aug 2010 13:57:02 +0000 (09:57 -0400)
nfsctl.c: In function 'expsetup':
nfsctl.c:112: warning: signed and unsigned type in conditional expression

Signed-off-by: Steve Dickson <steved@redhat.com>
support/export/nfsctl.c

index 3b9876a..f89c644 100644 (file)
@@ -109,7 +109,7 @@ expsetup(struct nfsctl_export *exparg, nfs_export *exp, int unexport)
        str_tolower(exparg->ex_client);
        exparg->ex_flags    = exp->m_export.e_flags;
        exparg->ex_dev      = (!unexport && (exp->m_export.e_flags & NFSEXP_FSID)) ?
-                               exp->m_export.e_fsid : stb.st_dev;
+                       (__nfsd_dev_t)exp->m_export.e_fsid : stb.st_dev;
        exparg->ex_ino      = stb.st_ino;
        exparg->ex_anon_uid = exp->m_export.e_anonuid;
        exparg->ex_anon_gid = exp->m_export.e_anongid;