summaryrefslogtreecommitdiff
path: root/networking/ftpgetput.c
diff options
context:
space:
mode:
authorRob Landley2006-06-02 19:03:01 +0000
committerRob Landley2006-06-02 19:03:01 +0000
commitff97ee9abda67ac0b85e0dc97a3d78ee85071cbf (patch)
tree2bad8febd7442a36910c0c0f6ad43f8bbd33e530 /networking/ftpgetput.c
parentcf1f2ace391269655a80e42b692749da0c3d4047 (diff)
downloadbusybox-ff97ee9abda67ac0b85e0dc97a3d78ee85071cbf.zip
busybox-ff97ee9abda67ac0b85e0dc97a3d78ee85071cbf.tar.gz
#ifdef reduction.
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r--networking/ftpgetput.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c
index 48b18b5..4be49c5 100644
--- a/networking/ftpgetput.c
+++ b/networking/ftpgetput.c
@@ -13,24 +13,17 @@
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <sys/types.h>
#include <sys/ioctl.h>
-#include <sys/stat.h>
#include <ctype.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
-#include <stdio.h>
-#include <stdlib.h>
#include <signal.h>
#include <string.h>
#include <unistd.h>
-#include <netinet/in.h>
-#include <netdb.h>
#include <sys/socket.h>
-#include <arpa/inet.h>
#include "busybox.h"
@@ -286,6 +279,8 @@ static const struct option ftpgetput_long_options[] = {
{"port", 1, NULL, 'P'},
{0, 0, 0, 0}
};
+#else
+#define ftpgetput_long_options 0
#endif
int ftpgetput_main(int argc, char **argv)
@@ -320,9 +315,9 @@ int ftpgetput_main(int argc, char **argv)
/*
* Decipher the command line
*/
-#if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS
- bb_applet_long_options = ftpgetput_long_options;
-#endif
+ if (ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS)
+ bb_applet_long_options = ftpgetput_long_options;
+
opt = bb_getopt_ulflags(argc, argv, "cvu:p:P:", &server->user, &server->password, &port);
/* Process the non-option command line arguments */