From c61852a02bd2d61682235ba3185173f527313827 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 29 Nov 2006 11:09:43 +0000 Subject: fix support for globally disabling --long-options. (disabling them saves ~4K on fully configured bbox) --- archival/tar.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'archival') diff --git a/archival/tar.c b/archival/tar.c index ca6c1696e..6a4c4e7e8 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" ) -- cgit v1.2.3