diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-29 14:09:43 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-29 14:09:43 +0300 |
commit | c61852a02bd2d61682235ba3185173f527313827 (patch) | |
tree | 6af2895da70dda926317fac31cd4db6a4b20200c /networking/ftpgetput.c | |
parent | 601ae1378ba7bb59e9c1a19fcc4ddd7bf9fb2e1b (diff) |
fix support for globally disabling --long-options.
(disabling them saves ~4K on fully configured bbox)
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 1facfa3d8..223d2435c 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c @@ -264,15 +264,13 @@ int ftp_send(ftp_host_info_t *server, FILE *control_stream, #if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS static const struct option ftpgetput_long_options[] = { - {"continue", 1, NULL, 'c'}, - {"verbose", 0, NULL, 'v'}, - {"username", 1, NULL, 'u'}, - {"password", 1, NULL, 'p'}, - {"port", 1, NULL, 'P'}, - {0, 0, 0, 0} + { "continue", 1, NULL, 'c' }, + { "verbose", 0, NULL, 'v' }, + { "username", 1, NULL, 'u' }, + { "password", 1, NULL, 'p' }, + { "port", 1, NULL, 'P' }, + { 0, 0, 0, 0 } }; -#else -#define ftpgetput_long_options 0 #endif int ftpgetput_main(int argc, char **argv) @@ -307,9 +305,9 @@ int ftpgetput_main(int argc, char **argv) /* * Decipher the command line */ - if (ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS) - applet_long_options = ftpgetput_long_options; - +#if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS + applet_long_options = ftpgetput_long_options; +#endif opt = getopt32(argc, argv, "cvu:p:P:", &server->user, &server->password, &port); /* Process the non-option command line arguments */ |