]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/nfsumount.c
mount.nfs: Eliminate compiler warning in utils/mount/nfsumount.c
[nfs-utils.git] / utils / mount / nfsumount.c
index 9d798a2ff347513779b646b88692ae873844b158..78a217876b55c8c2991e7c94c1efcd50ea1d868e 100644 (file)
@@ -31,6 +31,7 @@
 #include "nls.h"
 
 #include "mount_constants.h"
+#include "nfs_mount.h"
 #include "mount.h"
 #include "error.h"
 #include "network.h"
@@ -179,10 +180,8 @@ static int nfs_umount_do_umnt(struct mount_options *options,
        struct pmap nfs_pmap, mnt_pmap;
        sa_family_t family;
 
-       if (!nfs_options2pmap(options, &nfs_pmap, &mnt_pmap)) {
-               nfs_error(_("%s: bad mount options"), progname);
+       if (!nfs_options2pmap(options, &nfs_pmap, &mnt_pmap))
                return EX_FAIL;
-       }
 
        /* Skip UMNT call for vers=4 mounts */
        if (nfs_pmap.pm_vers == 4)