]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mount/mount.c
umount.nfs: eliminate a nearly empty header file.
[nfs-utils.git] / utils / mount / mount.c
index 7a4912eaf7c04893b2431ceebb9048c375c24138..d6d527cc5cb7d5d531c72123dbd51e461dcab1dc 100644 (file)
@@ -39,7 +39,6 @@
 
 #include "nfs_mount.h"
 #include "nfs4_mount.h"
-#include "nfsumount.h"
 #include "mount.h"
 #include "error.h"
 #include "network.h"
@@ -267,7 +266,7 @@ fail_unlock:
        return result;
 }
 
-void mount_usage()
+void mount_usage(void)
 {
        printf("usage: %s remotetarget dir [-rvVwfnh] [-o nfsoptions]\n",
                progname);
@@ -374,13 +373,8 @@ int main(int argc, char *argv[])
 
        discover_nfs_mount_data_version();
 
-       if(!strncmp(progname, "umount", strlen("umount"))) {
-               if(argc < 2) {
-                       umount_usage();
-                       exit(EX_USAGE);
-               }
+       if(!strncmp(progname, "umount", strlen("umount")))
                exit(nfsumount(argc, argv));
-       }
 
        if (argv[1] && argv[1][0] == '-') {
                if(argv[1][1] == 'V')