diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-11 16:51:21 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-11 16:51:21 +0000 |
| commit | 3821fb13ea404d243115ff8ec161273b62826513 (patch) | |
| tree | 89b3d79a1c900f270e4471a78cdd8859967dda01 | |
| parent | 8e9ccba371480fb1fb3da9235fabdbb7861523c3 (diff) | |
| download | busybox-w32-3821fb13ea404d243115ff8ec161273b62826513.tar.gz busybox-w32-3821fb13ea404d243115ff8ec161273b62826513.tar.bz2 busybox-w32-3821fb13ea404d243115ff8ec161273b62826513.zip | |
fix verbose output; remove commented-out includes.
| -rw-r--r-- | networking/ftpgetput.c | 9 | ||||
| -rw-r--r-- | networking/ping.c | 4 | ||||
| -rw-r--r-- | networking/ping6.c | 4 | ||||
| -rw-r--r-- | util-linux/rdate.c | 6 |
4 files changed, 4 insertions, 19 deletions
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 9086cb126..e9ba5435a 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
| @@ -22,8 +22,8 @@ typedef struct ftp_host_info_s { | |||
| 22 | struct len_and_sockaddr *lsa; | 22 | struct len_and_sockaddr *lsa; |
| 23 | } ftp_host_info_t; | 23 | } ftp_host_info_t; |
| 24 | 24 | ||
| 25 | static char verbose_flag; | 25 | static smallint verbose_flag; |
| 26 | static char do_continue; | 26 | static smallint do_continue; |
| 27 | 27 | ||
| 28 | static void ftp_die(const char *msg, const char *remote) ATTRIBUTE_NORETURN; | 28 | static void ftp_die(const char *msg, const char *remote) ATTRIBUTE_NORETURN; |
| 29 | static void ftp_die(const char *msg, const char *remote) | 29 | static void ftp_die(const char *msg, const char *remote) |
| @@ -41,7 +41,7 @@ static int ftpcmd(const char *s1, const char *s2, FILE *stream, char *buf) | |||
| 41 | { | 41 | { |
| 42 | unsigned n; | 42 | unsigned n; |
| 43 | if (verbose_flag) { | 43 | if (verbose_flag) { |
| 44 | bb_error_msg("cmd %s%s", s1, s2); | 44 | bb_error_msg("cmd %s %s", s1, s2); |
| 45 | } | 45 | } |
| 46 | 46 | ||
| 47 | if (s1) { | 47 | if (s1) { |
| @@ -320,10 +320,9 @@ int ftpgetput_main(int argc, char **argv) | |||
| 320 | #endif | 320 | #endif |
| 321 | 321 | ||
| 322 | /* Set default values */ | 322 | /* Set default values */ |
| 323 | server = xmalloc(sizeof(ftp_host_info_t)); | 323 | server = xmalloc(*server); |
| 324 | server->user = "anonymous"; | 324 | server->user = "anonymous"; |
| 325 | server->password = "busybox@"; | 325 | server->password = "busybox@"; |
| 326 | verbose_flag = 0; | ||
| 327 | 326 | ||
| 328 | /* | 327 | /* |
| 329 | * Decipher the command line | 328 | * Decipher the command line |
diff --git a/networking/ping.c b/networking/ping.c index de97d7e7f..12730bec5 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
| @@ -12,11 +12,7 @@ | |||
| 12 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 12 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
| 13 | */ | 13 | */ |
| 14 | 14 | ||
| 15 | //#include <netinet/in.h> | ||
| 16 | //#include <netinet/ip.h> | ||
| 17 | #include <netinet/ip_icmp.h> | 15 | #include <netinet/ip_icmp.h> |
| 18 | //#include <arpa/inet.h> | ||
| 19 | //#include <netdb.h> | ||
| 20 | #include "busybox.h" | 16 | #include "busybox.h" |
| 21 | 17 | ||
| 22 | enum { | 18 | enum { |
diff --git a/networking/ping6.c b/networking/ping6.c index 81e16e2f0..fd18cc877 100644 --- a/networking/ping6.c +++ b/networking/ping6.c | |||
| @@ -22,12 +22,8 @@ | |||
| 22 | * The code was modified by Bart Visscher <magick@linux-fan.com> | 22 | * The code was modified by Bart Visscher <magick@linux-fan.com> |
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | //#include <netinet/in.h> | ||
| 26 | //#include <netinet/ip6.h> | ||
| 27 | #include <netinet/icmp6.h> | 25 | #include <netinet/icmp6.h> |
| 28 | //#include <arpa/inet.h> | ||
| 29 | #include <net/if.h> | 26 | #include <net/if.h> |
| 30 | //#include <netdb.h> | ||
| 31 | #include "busybox.h" | 27 | #include "busybox.h" |
| 32 | 28 | ||
| 33 | /* I see RENUMBERED constants in bits/in.h - !!? | 29 | /* I see RENUMBERED constants in bits/in.h - !!? |
diff --git a/util-linux/rdate.c b/util-linux/rdate.c index ccbf96966..d6d1384f7 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c | |||
| @@ -8,14 +8,8 @@ | |||
| 8 | * Licensed under GPL v2 or later, see file License for details. | 8 | * Licensed under GPL v2 or later, see file License for details. |
| 9 | */ | 9 | */ |
| 10 | 10 | ||
| 11 | //#include <sys/socket.h> | ||
| 12 | //#include <netinet/in.h> | ||
| 13 | //#include <netdb.h> | ||
| 14 | //#include <signal.h> | ||
| 15 | |||
| 16 | #include "busybox.h" | 11 | #include "busybox.h" |
| 17 | 12 | ||
| 18 | |||
| 19 | enum { RFC_868_BIAS = 2208988800UL }; | 13 | enum { RFC_868_BIAS = 2208988800UL }; |
| 20 | 14 | ||
| 21 | static void socket_timeout(int sig) | 15 | static void socket_timeout(int sig) |
