diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 08:55:44 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 08:55:44 +0000 |
commit | 397de617f38a58ca4659ee348faf1df574b3ec8d (patch) | |
tree | 8d629ddebd9ce35cff7fb97b1e8e436142dade41 /util-linux | |
parent | a4522c5a66fab931328e2423f41716fba3a6fbfd (diff) | |
download | busybox-w32-397de617f38a58ca4659ee348faf1df574b3ec8d.tar.gz busybox-w32-397de617f38a58ca4659ee348faf1df574b3ec8d.tar.bz2 busybox-w32-397de617f38a58ca4659ee348faf1df574b3ec8d.zip |
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
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/mount.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index e41707e38..796e1e103 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -1725,8 +1725,6 @@ static const char must_be_root[] ALIGN1 = "you must be root"; | |||
1725 | int mount_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 1725 | int mount_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
1726 | int mount_main(int argc, char **argv) | 1726 | int mount_main(int argc, char **argv) |
1727 | { | 1727 | { |
1728 | enum { OPT_ALL = 0x10 }; | ||
1729 | |||
1730 | char *cmdopts = xstrdup(""); | 1728 | char *cmdopts = xstrdup(""); |
1731 | char *fstype = NULL; | 1729 | char *fstype = NULL; |
1732 | char *storage_path = NULL; | 1730 | char *storage_path = NULL; |
@@ -1771,7 +1769,7 @@ int mount_main(int argc, char **argv) | |||
1771 | // If we have no arguments, show currently mounted filesystems | 1769 | // If we have no arguments, show currently mounted filesystems |
1772 | 1770 | ||
1773 | if (!argc) { | 1771 | if (!argc) { |
1774 | if (!(opt & OPT_ALL)) { | 1772 | if (!(opt & OPT_a)) { |
1775 | FILE *mountTable = setmntent(bb_path_mtab_file, "r"); | 1773 | FILE *mountTable = setmntent(bb_path_mtab_file, "r"); |
1776 | 1774 | ||
1777 | if (!mountTable) bb_error_msg_and_die("no %s", bb_path_mtab_file); | 1775 | if (!mountTable) bb_error_msg_and_die("no %s", bb_path_mtab_file); |