From: Steve Dickson Date: Mon, 19 Jul 2010 16:12:52 +0000 (-0400) Subject: Remove warnings from nfsctl.c X-Git-Tag: nfs-utils-1-2-3-rc5 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e2003650c68cf47806fb24f7d88fae5524b70aab;p=nfs-utils.git Remove warnings from nfsctl.c nfsctl.c: In function 'expsetup': nfsctl.c:112: warning: signed and unsigned type in conditional expression Signed-off-by: Steve Dickson --- diff --git a/support/export/nfsctl.c b/support/export/nfsctl.c index 3b9876a..f89c644 100644 --- a/support/export/nfsctl.c +++ b/support/export/nfsctl.c @@ -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;