help text: regularize format, and shrink
getty: shrink, and improve comments mount: OPT_ALL is superfluous, we already have OPT_a function old new delta bcode 47 25 -22 getty_main 2503 2349 -154 packed_usage 23928 23698 -230 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-406) Total: -406 bytes text data bss dec hex filename 798031 658 7428 806117 c4ce5 busybox_old 797604 658 7428 805690 c4b3a busybox_unstripped
This commit is contained in:
@ -1725,8 +1725,6 @@ static const char must_be_root[] ALIGN1 = "you must be root";
|
||||
int mount_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
||||
int mount_main(int argc, char **argv)
|
||||
{
|
||||
enum { OPT_ALL = 0x10 };
|
||||
|
||||
char *cmdopts = xstrdup("");
|
||||
char *fstype = NULL;
|
||||
char *storage_path = NULL;
|
||||
@ -1771,7 +1769,7 @@ int mount_main(int argc, char **argv)
|
||||
// If we have no arguments, show currently mounted filesystems
|
||||
|
||||
if (!argc) {
|
||||
if (!(opt & OPT_ALL)) {
|
||||
if (!(opt & OPT_a)) {
|
||||
FILE *mountTable = setmntent(bb_path_mtab_file, "r");
|
||||
|
||||
if (!mountTable) bb_error_msg_and_die("no %s", bb_path_mtab_file);
|
||||
|
Reference in New Issue
Block a user