diff options
author | "Robert P. J. Day" <rpjday@mindspring.com> | 2006-07-01 14:59:54 +0000 |
---|---|---|
committer | "Robert P. J. Day" <rpjday@mindspring.com> | 2006-07-01 14:59:54 +0000 |
commit | d35ef0f66643f2bc43bd7070df0356e0b064b755 (patch) | |
tree | 5aa3ba477deef2545a65b9cd33e316fcb0496044 | |
parent | edd9ca574327205933f23205d7051f613e46b23b (diff) | |
download | busybox-w32-d35ef0f66643f2bc43bd7070df0356e0b064b755.tar.gz busybox-w32-d35ef0f66643f2bc43bd7070df0356e0b064b755.tar.bz2 busybox-w32-d35ef0f66643f2bc43bd7070df0356e0b064b755.zip |
More removal of "#if 0" content.
-rw-r--r-- | networking/arping.c | 12 | ||||
-rw-r--r-- | networking/ifupdown.c | 4 | ||||
-rw-r--r-- | networking/ip.c | 52 | ||||
-rw-r--r-- | networking/ping6.c | 6 | ||||
-rw-r--r-- | networking/route.c | 4 | ||||
-rw-r--r-- | networking/telnet.c | 15 |
6 files changed, 0 insertions, 93 deletions
diff --git a/networking/arping.c b/networking/arping.c index e12fa508b..6cb607612 100644 --- a/networking/arping.c +++ b/networking/arping.c | |||
@@ -52,18 +52,6 @@ static int req_recv; | |||
52 | 52 | ||
53 | #define MS_TDIFF(tv1,tv2) ( ((tv1).tv_sec-(tv2).tv_sec)*1000 + \ | 53 | #define MS_TDIFF(tv1,tv2) ( ((tv1).tv_sec-(tv2).tv_sec)*1000 + \ |
54 | ((tv1).tv_usec-(tv2).tv_usec)/1000 ) | 54 | ((tv1).tv_usec-(tv2).tv_usec)/1000 ) |
55 | #if 0 | ||
56 | static void set_signal(int signo, void (*handler) (void)) | ||
57 | { | ||
58 | struct sigaction sa; | ||
59 | |||
60 | memset(&sa, 0, sizeof(sa)); | ||
61 | sa.sa_handler = (void (*)(int)) handler; | ||
62 | sa.sa_flags = SA_RESTART; | ||
63 | sigaction(signo, &sa, NULL); | ||
64 | } | ||
65 | #endif | ||
66 | |||
67 | static int send_pack(int sock, struct in_addr *src_addr, | 55 | static int send_pack(int sock, struct in_addr *src_addr, |
68 | struct in_addr *dst_addr, struct sockaddr_ll *ME, | 56 | struct in_addr *dst_addr, struct sockaddr_ll *ME, |
69 | struct sockaddr_ll *HE) | 57 | struct sockaddr_ll *HE) |
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index ff47e60c9..8ee488364 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -43,11 +43,7 @@ | |||
43 | #define MAX_INTERFACE_LENGTH 10 | 43 | #define MAX_INTERFACE_LENGTH 10 |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | #if 0 | ||
47 | #define debug_noise(fmt, args...) printf(fmt, ## args) | ||
48 | #else | ||
49 | #define debug_noise(fmt, args...) | 46 | #define debug_noise(fmt, args...) |
50 | #endif | ||
51 | 47 | ||
52 | /* Forward declaration */ | 48 | /* Forward declaration */ |
53 | struct interface_defn_t; | 49 | struct interface_defn_t; |
diff --git a/networking/ip.c b/networking/ip.c index bba70890d..d44cc0d60 100644 --- a/networking/ip.c +++ b/networking/ip.c | |||
@@ -25,58 +25,6 @@ | |||
25 | 25 | ||
26 | #include "busybox.h" | 26 | #include "busybox.h" |
27 | 27 | ||
28 | #if 0 | ||
29 | int preferred_family = AF_UNSPEC; | ||
30 | int oneline = 0; | ||
31 | char * _SL_ = NULL; | ||
32 | |||
33 | void ip_parse_common_args(int *argcp, char ***argvp) | ||
34 | { | ||
35 | int argc = *argcp; | ||
36 | char **argv = *argvp; | ||
37 | |||
38 | while (argc > 1) { | ||
39 | char *opt = argv[1]; | ||
40 | |||
41 | if (strcmp(opt,"--") == 0) { | ||
42 | argc--; argv++; | ||
43 | break; | ||
44 | } | ||
45 | |||
46 | if (opt[0] != '-') | ||
47 | break; | ||
48 | |||
49 | if (opt[1] == '-') | ||
50 | opt++; | ||
51 | |||
52 | if (matches(opt, "-family") == 0) { | ||
53 | argc--; | ||
54 | argv++; | ||
55 | if (strcmp(argv[1], "inet") == 0) | ||
56 | preferred_family = AF_INET; | ||
57 | else if (strcmp(argv[1], "inet6") == 0) | ||
58 | preferred_family = AF_INET6; | ||
59 | else if (strcmp(argv[1], "link") == 0) | ||
60 | preferred_family = AF_PACKET; | ||
61 | else | ||
62 | invarg(bb_msg_invalid_arg, argv[1], "-family"); | ||
63 | } else if (strcmp(opt, "-4") == 0) { | ||
64 | preferred_family = AF_INET; | ||
65 | } else if (strcmp(opt, "-6") == 0) { | ||
66 | preferred_family = AF_INET6; | ||
67 | } else if (strcmp(opt, "-0") == 0) { | ||
68 | preferred_family = AF_PACKET; | ||
69 | } else if (matches(opt, "-oneline") == 0) { | ||
70 | ++oneline; | ||
71 | } else { | ||
72 | bb_show_usage(); | ||
73 | } | ||
74 | argc--; argv++; | ||
75 | } | ||
76 | _SL_ = oneline ? "\\" : "\n" ; | ||
77 | } | ||
78 | #endif | ||
79 | |||
80 | int ip_main(int argc, char **argv) | 28 | int ip_main(int argc, char **argv) |
81 | { | 29 | { |
82 | int ret = EXIT_FAILURE; | 30 | int ret = EXIT_FAILURE; |
diff --git a/networking/ping6.c b/networking/ping6.c index c15ea5c4a..f7cb268d2 100644 --- a/networking/ping6.c +++ b/networking/ping6.c | |||
@@ -351,12 +351,6 @@ static void ping(const char *host) | |||
351 | struct icmp6_filter filt; | 351 | struct icmp6_filter filt; |
352 | if (!(options & O_VERBOSE)) { | 352 | if (!(options & O_VERBOSE)) { |
353 | ICMP6_FILTER_SETBLOCKALL(&filt); | 353 | ICMP6_FILTER_SETBLOCKALL(&filt); |
354 | #if 0 | ||
355 | if ((options & F_FQDN) || (options & F_FQDNOLD) || | ||
356 | (options & F_NODEADDR) || (options & F_SUPTYPES)) | ||
357 | ICMP6_FILTER_SETPASS(ICMP6_NI_REPLY, &filt); | ||
358 | else | ||
359 | #endif | ||
360 | ICMP6_FILTER_SETPASS(ICMP6_ECHO_REPLY, &filt); | 354 | ICMP6_FILTER_SETPASS(ICMP6_ECHO_REPLY, &filt); |
361 | } else { | 355 | } else { |
362 | ICMP6_FILTER_SETPASSALL(&filt); | 356 | ICMP6_FILTER_SETPASSALL(&filt); |
diff --git a/networking/route.c b/networking/route.c index 062ba8a13..d90578615 100644 --- a/networking/route.c +++ b/networking/route.c | |||
@@ -628,11 +628,7 @@ static void INET6_displayroutes(int noresolve) | |||
628 | snaddr6.sin6_family = AF_INET6; | 628 | snaddr6.sin6_family = AF_INET6; |
629 | INET6_rresolve(naddr6, sizeof(naddr6), | 629 | INET6_rresolve(naddr6, sizeof(naddr6), |
630 | (struct sockaddr_in6 *) &snaddr6, | 630 | (struct sockaddr_in6 *) &snaddr6, |
631 | #if 0 | ||
632 | (noresolve | 0x8000) /* Default instead of *. */ | ||
633 | #else | ||
634 | 0x0fff /* Apparently, upstream never resolves. */ | 631 | 0x0fff /* Apparently, upstream never resolves. */ |
635 | #endif | ||
636 | ); | 632 | ); |
637 | 633 | ||
638 | if (!r) { /* 1st pass */ | 634 | if (!r) { /* 1st pass */ |
diff --git a/networking/telnet.c b/networking/telnet.c index c835c7a45..59268c6de 100644 --- a/networking/telnet.c +++ b/networking/telnet.c | |||
@@ -34,10 +34,6 @@ | |||
34 | #include <netinet/in.h> | 34 | #include <netinet/in.h> |
35 | #include "busybox.h" | 35 | #include "busybox.h" |
36 | 36 | ||
37 | #if 0 | ||
38 | enum { DOTRACE = 1 }; | ||
39 | #endif | ||
40 | |||
41 | #ifdef DOTRACE | 37 | #ifdef DOTRACE |
42 | #include <arpa/inet.h> /* for inet_ntoa()... */ | 38 | #include <arpa/inet.h> /* for inet_ntoa()... */ |
43 | #define TRACE(x, y) do { if (x) printf y; } while (0) | 39 | #define TRACE(x, y) do { if (x) printf y; } while (0) |
@@ -311,17 +307,6 @@ static void putiac2(byte wwdd, byte c) | |||
311 | putiac(c); | 307 | putiac(c); |
312 | } | 308 | } |
313 | 309 | ||
314 | #if 0 | ||
315 | static void putiac1(byte c) | ||
316 | { | ||
317 | if (G.iaclen + 2 > IACBUFSIZE) | ||
318 | iacflush(); | ||
319 | |||
320 | putiac(IAC); | ||
321 | putiac(c); | ||
322 | } | ||
323 | #endif | ||
324 | |||
325 | #ifdef CONFIG_FEATURE_TELNET_TTYPE | 310 | #ifdef CONFIG_FEATURE_TELNET_TTYPE |
326 | static void putiac_subopt(byte c, char *str) | 311 | static void putiac_subopt(byte c, char *str) |
327 | { | 312 | { |