diff options
author | Rob Landley <rob@landley.net> | 2006-06-02 19:03:01 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-06-02 19:03:01 +0000 |
commit | ff97ee9abda67ac0b85e0dc97a3d78ee85071cbf (patch) | |
tree | 2bad8febd7442a36910c0c0f6ad43f8bbd33e530 /networking/ftpgetput.c | |
parent | cf1f2ace391269655a80e42b692749da0c3d4047 (diff) | |
download | busybox-w32-ff97ee9abda67ac0b85e0dc97a3d78ee85071cbf.tar.gz busybox-w32-ff97ee9abda67ac0b85e0dc97a3d78ee85071cbf.tar.bz2 busybox-w32-ff97ee9abda67ac0b85e0dc97a3d78ee85071cbf.zip |
#ifdef reduction.
Diffstat (limited to 'networking/ftpgetput.c')
-rw-r--r-- | networking/ftpgetput.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 48b18b536..4be49c5a9 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -13,24 +13,17 @@ | |||
13 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 13 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <sys/types.h> | ||
17 | #include <sys/ioctl.h> | 16 | #include <sys/ioctl.h> |
18 | #include <sys/stat.h> | ||
19 | 17 | ||
20 | #include <ctype.h> | 18 | #include <ctype.h> |
21 | #include <errno.h> | 19 | #include <errno.h> |
22 | #include <fcntl.h> | 20 | #include <fcntl.h> |
23 | #include <getopt.h> | 21 | #include <getopt.h> |
24 | #include <stdio.h> | ||
25 | #include <stdlib.h> | ||
26 | #include <signal.h> | 22 | #include <signal.h> |
27 | #include <string.h> | 23 | #include <string.h> |
28 | #include <unistd.h> | 24 | #include <unistd.h> |
29 | 25 | ||
30 | #include <netinet/in.h> | ||
31 | #include <netdb.h> | ||
32 | #include <sys/socket.h> | 26 | #include <sys/socket.h> |
33 | #include <arpa/inet.h> | ||
34 | 27 | ||
35 | #include "busybox.h" | 28 | #include "busybox.h" |
36 | 29 | ||
@@ -286,6 +279,8 @@ static const struct option ftpgetput_long_options[] = { | |||
286 | {"port", 1, NULL, 'P'}, | 279 | {"port", 1, NULL, 'P'}, |
287 | {0, 0, 0, 0} | 280 | {0, 0, 0, 0} |
288 | }; | 281 | }; |
282 | #else | ||
283 | #define ftpgetput_long_options 0 | ||
289 | #endif | 284 | #endif |
290 | 285 | ||
291 | int ftpgetput_main(int argc, char **argv) | 286 | int ftpgetput_main(int argc, char **argv) |
@@ -320,9 +315,9 @@ int ftpgetput_main(int argc, char **argv) | |||
320 | /* | 315 | /* |
321 | * Decipher the command line | 316 | * Decipher the command line |
322 | */ | 317 | */ |
323 | #if ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS | 318 | if (ENABLE_FEATURE_FTPGETPUT_LONG_OPTIONS) |
324 | bb_applet_long_options = ftpgetput_long_options; | 319 | bb_applet_long_options = ftpgetput_long_options; |
325 | #endif | 320 | |
326 | opt = bb_getopt_ulflags(argc, argv, "cvu:p:P:", &server->user, &server->password, &port); | 321 | opt = bb_getopt_ulflags(argc, argv, "cvu:p:P:", &server->user, &server->password, &port); |
327 | 322 | ||
328 | /* Process the non-option command line arguments */ | 323 | /* Process the non-option command line arguments */ |