No good reason to export umount_usage. Make it static.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
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')
{ NULL, 0, 0, 0 }
};
-void umount_usage(void)
+static void umount_usage(void)
{
printf("usage: %s dir [-fvnrlh]\n", progname);
printf("options:\n\t-f\t\tforce unmount\n");
char *spec;
struct mntentchn *mc;
+ if (argc < 2) {
+ umount_usage();
+ return EX_USAGE;
+ }
+
spec = argv[1];
argv += 1;
int nfsumount(int, char **);
int nfs_call_umount(clnt_addr_t *, dirpath *);
-void umount_usage(void);
#endif