diff options
author | Denis Vlasenko | 2006-11-29 11:09:43 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-11-29 11:09:43 +0000 |
commit | c61852a02bd2d61682235ba3185173f527313827 (patch) | |
tree | 6af2895da70dda926317fac31cd4db6a4b20200c /archival | |
parent | 601ae1378ba7bb59e9c1a19fcc4ddd7bf9fb2e1b (diff) | |
download | busybox-c61852a02bd2d61682235ba3185173f527313827.zip busybox-c61852a02bd2d61682235ba3185173f527313827.tar.gz |
fix support for globally disabling --long-options.
(disabling them saves ~4K on fully configured bbox)
Diffstat (limited to 'archival')
-rw-r--r-- | archival/tar.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/archival/tar.c b/archival/tar.c index ca6c169..6a4c4e7 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -721,8 +721,6 @@ static const struct option tar_long_options[] = { # endif { 0, 0, 0, 0 } }; -#else -#define tar_long_options 0 #endif int tar_main(int argc, char **argv) @@ -750,8 +748,9 @@ int tar_main(int argc, char **argv) USE_FEATURE_TAR_CREATE("c:") "t:x:" // at least one of these is reqd USE_FEATURE_TAR_CREATE("c--tx:t--cx:x--ct") // mutually exclusive SKIP_FEATURE_TAR_CREATE("t--x:x--t"); // mutually exclusive - if (ENABLE_FEATURE_TAR_LONG_OPTIONS) - applet_long_options = tar_long_options; +#if ENABLE_FEATURE_TAR_LONG_OPTIONS + applet_long_options = tar_long_options; +#endif opt = getopt32(argc, argv, "txC:f:Opvk" USE_FEATURE_TAR_CREATE( "ch" ) |