Use the newly defined EX_SUCCESS exit code in all the right places.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Neil Brown <neilb@suse.de>
if (flags & MS_REMOUNT) {
update_mtab(ment.mnt_dir, &ment);
- return 0;
+ return EX_SUCCESS;
}
lock_mtab();
goto fail_close;
}
- result = 0;
+ result = EX_SUCCESS;
fail_close:
endmntent(mtab);
printf("%s ("PACKAGE_STRING")\n", progname);
else
mount_usage();
- exit(0);
+ exit(EX_SUCCESS);
}
if ((argc < 3)) {
break;
case 'V':
printf("%s: ("PACKAGE_STRING")\n", progname);
- exit(0);
+ exit(EX_SUCCESS);
case 'w':
flags &= ~MS_RDONLY;
break;
}
}
- return 0;
+ return EX_SUCCESS;
fail:
return retval;
}
}
- return 0;
+ return EX_SUCCESS;
/* abort */
fail:
return EX_USAGE;
}
- return 0;
+ return EX_SUCCESS;
}
static struct option umount_longopts[] =
/* umount might call us twice. The second time there will
* be no entry in mtab and we should just exit quietly
*/
- return 0;
+ return EX_SUCCESS;
only_root:
nfs_error(_("%s: You are not permitted to unmount %s"),
}
}
- return 0;
+ return EX_SUCCESS;
}
/*
}
}
- return 0;
+ return EX_SUCCESS;
}