diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 09:00:54 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 09:00:54 +0000 |
commit | 68404f13d4bf4826e3609703dad5375763db28ab (patch) | |
tree | b89ed41daeb3a761ac9416a6eed090023b23e7e2 /networking | |
parent | a55bd05f3cea6c7cbfb45d15009cb70570c2a43b (diff) | |
download | busybox-w32-68404f13d4bf4826e3609703dad5375763db28ab.tar.gz busybox-w32-68404f13d4bf4826e3609703dad5375763db28ab.tar.bz2 busybox-w32-68404f13d4bf4826e3609703dad5375763db28ab.zip |
*: add -Wunused-parameter; fix resulting breakage
function old new delta
procps_scan 1265 1298 +33
aliascmd 278 283 +5
parse_file_cmd 116 120 +4
dname_enc 373 377 +4
setcmd 90 93 +3
execcmd 57 60 +3
count_lines 72 74 +2
process_command_subs 340 339 -1
test_main 409 407 -2
mknod_main 179 177 -2
handle_incoming_and_exit 2653 2651 -2
argstr 1312 1310 -2
shiftcmd 131 128 -3
exitcmd 46 43 -3
dotcmd 297 294 -3
breakcmd 86 83 -3
evalpipe 353 349 -4
evalcommand 1180 1176 -4
evalcmd 109 105 -4
send_tree 374 369 -5
mkfifo_main 82 77 -5
evalsubshell 152 147 -5
typecmd 75 69 -6
letcmd 61 55 -6
add_cmd 1190 1183 -7
main 891 883 -8
ash_main 1415 1407 -8
parse_stream 1377 1367 -10
alloc_procps_scan 55 - -55
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes
text data bss dec hex filename
797195 658 7428 805281 c49a1 busybox_old
797101 658 7428 805187 c4943 busybox_unstripped
Diffstat (limited to 'networking')
-rw-r--r-- | networking/arp.c | 2 | ||||
-rw-r--r-- | networking/arping.c | 2 | ||||
-rw-r--r-- | networking/dnsd.c | 9 | ||||
-rw-r--r-- | networking/ftpgetput.c | 2 | ||||
-rw-r--r-- | networking/httpd.c | 4 | ||||
-rw-r--r-- | networking/ifenslave.c | 2 | ||||
-rw-r--r-- | networking/ifupdown.c | 2 | ||||
-rw-r--r-- | networking/inetd.c | 4 | ||||
-rw-r--r-- | networking/interface.c | 2 | ||||
-rw-r--r-- | networking/ip.c | 12 | ||||
-rw-r--r-- | networking/isrv_identd.c | 4 | ||||
-rw-r--r-- | networking/libiproute/ll_map.c | 4 | ||||
-rw-r--r-- | networking/nc_bloaty.c | 2 | ||||
-rw-r--r-- | networking/netstat.c | 2 | ||||
-rw-r--r-- | networking/ping.c | 8 | ||||
-rw-r--r-- | networking/pscan.c | 2 | ||||
-rw-r--r-- | networking/route.c | 6 | ||||
-rw-r--r-- | networking/sendmail.c | 2 | ||||
-rw-r--r-- | networking/slattach.c | 4 | ||||
-rw-r--r-- | networking/telnetd.c | 4 | ||||
-rw-r--r-- | networking/tftp.c | 2 | ||||
-rw-r--r-- | networking/udhcp/dhcpc.c | 2 | ||||
-rw-r--r-- | networking/udhcp/dhcpd.c | 2 | ||||
-rw-r--r-- | networking/udhcp/dumpleases.c | 2 | ||||
-rw-r--r-- | networking/wget.c | 2 |
25 files changed, 47 insertions, 42 deletions
diff --git a/networking/arp.c b/networking/arp.c index 36985fc5a..c9b9d1d0d 100644 --- a/networking/arp.c +++ b/networking/arp.c | |||
@@ -435,7 +435,7 @@ static int arp_show(char *name) | |||
435 | } | 435 | } |
436 | 436 | ||
437 | int arp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 437 | int arp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
438 | int arp_main(int argc, char **argv) | 438 | int arp_main(int argc ATTRIBUTE_UNUSED, char **argv) |
439 | { | 439 | { |
440 | char *hw_type; | 440 | char *hw_type; |
441 | char *protocol; | 441 | char *protocol; |
diff --git a/networking/arping.c b/networking/arping.c index 2277ec55e..6a17b18ee 100644 --- a/networking/arping.c +++ b/networking/arping.c | |||
@@ -245,7 +245,7 @@ static bool recv_pack(unsigned char *buf, int len, struct sockaddr_ll *FROM) | |||
245 | } | 245 | } |
246 | 246 | ||
247 | int arping_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 247 | int arping_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
248 | int arping_main(int argc, char **argv) | 248 | int arping_main(int argc ATTRIBUTE_UNUSED, char **argv) |
249 | { | 249 | { |
250 | const char *device = "eth0"; | 250 | const char *device = "eth0"; |
251 | char *source = NULL; | 251 | char *source = NULL; |
diff --git a/networking/dnsd.c b/networking/dnsd.c index 0a5278377..b269bc52a 100644 --- a/networking/dnsd.c +++ b/networking/dnsd.c | |||
@@ -321,15 +321,15 @@ static int process_packet(uint8_t * buf) | |||
321 | /* | 321 | /* |
322 | * Exit on signal | 322 | * Exit on signal |
323 | */ | 323 | */ |
324 | static void interrupt(int x) | 324 | static void interrupt(int sig) |
325 | { | 325 | { |
326 | /* unlink("/var/run/dnsd.lock"); */ | 326 | /* unlink("/var/run/dnsd.lock"); */ |
327 | bb_error_msg("interrupt, exiting\n"); | 327 | bb_error_msg("interrupt, exiting\n"); |
328 | exit(2); | 328 | kill_myself_with_sig(sig); |
329 | } | 329 | } |
330 | 330 | ||
331 | int dnsd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 331 | int dnsd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
332 | int dnsd_main(int argc, char **argv) | 332 | int dnsd_main(int argc ATTRIBUTE_UNUSED, char **argv) |
333 | { | 333 | { |
334 | const char *listen_interface = "0.0.0.0"; | 334 | const char *listen_interface = "0.0.0.0"; |
335 | char *sttl, *sport; | 335 | char *sttl, *sport; |
@@ -387,6 +387,9 @@ int dnsd_main(int argc, char **argv) | |||
387 | // Or else we can exhibit usual UDP ugliness: | 387 | // Or else we can exhibit usual UDP ugliness: |
388 | // [ip1.multihomed.ip2] <= query to ip1 <= peer | 388 | // [ip1.multihomed.ip2] <= query to ip1 <= peer |
389 | // [ip1.multihomed.ip2] => reply from ip2 => peer (confused) | 389 | // [ip1.multihomed.ip2] => reply from ip2 => peer (confused) |
390 | |||
391 | // TODO: recv_from_to | ||
392 | |||
390 | r = recvfrom(udps, buf, sizeof(buf), 0, &lsa->u.sa, &fromlen); | 393 | r = recvfrom(udps, buf, sizeof(buf), 0, &lsa->u.sa, &fromlen); |
391 | if (OPT_verbose) | 394 | if (OPT_verbose) |
392 | bb_info_msg("Got UDP packet"); | 395 | bb_info_msg("Got UDP packet"); |
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index 91f6fcd0d..6e2d96093 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -297,7 +297,7 @@ static const char ftpgetput_longopts[] ALIGN1 = | |||
297 | #endif | 297 | #endif |
298 | 298 | ||
299 | int ftpgetput_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 299 | int ftpgetput_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
300 | int ftpgetput_main(int argc, char **argv) | 300 | int ftpgetput_main(int argc ATTRIBUTE_UNUSED, char **argv) |
301 | { | 301 | { |
302 | /* content-length of the file */ | 302 | /* content-length of the file */ |
303 | unsigned opt; | 303 | unsigned opt; |
diff --git a/networking/httpd.c b/networking/httpd.c index 7b7446ed9..54f288c7a 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -1754,7 +1754,7 @@ static Htaccess_Proxy *find_proxy_entry(const char *url) | |||
1754 | * Handle timeouts | 1754 | * Handle timeouts |
1755 | */ | 1755 | */ |
1756 | static void exit_on_signal(int sig) ATTRIBUTE_NORETURN; | 1756 | static void exit_on_signal(int sig) ATTRIBUTE_NORETURN; |
1757 | static void exit_on_signal(int sig) | 1757 | static void exit_on_signal(int sig ATTRIBUTE_UNUSED) |
1758 | { | 1758 | { |
1759 | send_headers_and_exit(HTTP_REQUEST_TIMEOUT); | 1759 | send_headers_and_exit(HTTP_REQUEST_TIMEOUT); |
1760 | } | 1760 | } |
@@ -2275,7 +2275,7 @@ enum { | |||
2275 | 2275 | ||
2276 | 2276 | ||
2277 | int httpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 2277 | int httpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
2278 | int httpd_main(int argc, char **argv) | 2278 | int httpd_main(int argc ATTRIBUTE_UNUSED, char **argv) |
2279 | { | 2279 | { |
2280 | int server_socket = server_socket; /* for gcc */ | 2280 | int server_socket = server_socket; /* for gcc */ |
2281 | unsigned opt; | 2281 | unsigned opt; |
diff --git a/networking/ifenslave.c b/networking/ifenslave.c index 76aaa7614..1e3d5bb95 100644 --- a/networking/ifenslave.c +++ b/networking/ifenslave.c | |||
@@ -150,7 +150,7 @@ static int release(char *master_ifname, char *slave_ifname); | |||
150 | 150 | ||
151 | 151 | ||
152 | int ifenslave_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 152 | int ifenslave_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
153 | int ifenslave_main(int argc, char **argv) | 153 | int ifenslave_main(int argc ATTRIBUTE_UNUSED, char **argv) |
154 | { | 154 | { |
155 | char *master_ifname, *slave_ifname; | 155 | char *master_ifname, *slave_ifname; |
156 | int rv; | 156 | int rv; |
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 58e69530c..6aa929a30 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -530,7 +530,7 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) | |||
530 | #endif | 530 | #endif |
531 | } | 531 | } |
532 | 532 | ||
533 | static int manual_up_down(struct interface_defn_t *ifd, execfn *exec) | 533 | static int manual_up_down(struct interface_defn_t *ifd ATTRIBUTE_UNUSED, execfn *exec ATTRIBUTE_UNUSED) |
534 | { | 534 | { |
535 | return 1; | 535 | return 1; |
536 | } | 536 | } |
diff --git a/networking/inetd.c b/networking/inetd.c index 41824dbc8..0ddfa6b45 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -1128,7 +1128,7 @@ static void clean_up_and_exit(int sig ATTRIBUTE_UNUSED) | |||
1128 | } | 1128 | } |
1129 | 1129 | ||
1130 | int inetd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 1130 | int inetd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
1131 | int inetd_main(int argc, char **argv) | 1131 | int inetd_main(int argc ATTRIBUTE_UNUSED, char **argv) |
1132 | { | 1132 | { |
1133 | struct sigaction sa, saved_pipe_handler; | 1133 | struct sigaction sa, saved_pipe_handler; |
1134 | servtab_t *sep, *sep2; | 1134 | servtab_t *sep, *sep2; |
@@ -1492,7 +1492,7 @@ static void init_ring(void) | |||
1492 | } | 1492 | } |
1493 | /* Character generator. MMU arches only. */ | 1493 | /* Character generator. MMU arches only. */ |
1494 | /* ARGSUSED */ | 1494 | /* ARGSUSED */ |
1495 | static void chargen_stream(int s, servtab_t *sep) | 1495 | static void chargen_stream(int s, servtab_t *sep ATTRIBUTE_UNUSED) |
1496 | { | 1496 | { |
1497 | char *rs; | 1497 | char *rs; |
1498 | int len; | 1498 | int len; |
diff --git a/networking/interface.c b/networking/interface.c index 04d12b37e..367d2b0bc 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -237,7 +237,7 @@ static char *UNSPEC_print(unsigned char *ptr) | |||
237 | } | 237 | } |
238 | 238 | ||
239 | /* Display an UNSPEC socket address. */ | 239 | /* Display an UNSPEC socket address. */ |
240 | static const char *UNSPEC_sprint(struct sockaddr *sap, int numeric) | 240 | static const char *UNSPEC_sprint(struct sockaddr *sap, int numeric ATTRIBUTE_UNUSED) |
241 | { | 241 | { |
242 | if (sap->sa_family == 0xFFFF || sap->sa_family == 0) | 242 | if (sap->sa_family == 0xFFFF || sap->sa_family == 0) |
243 | return "[NONE SET]"; | 243 | return "[NONE SET]"; |
diff --git a/networking/ip.c b/networking/ip.c index 5d9785194..bb409c5ce 100644 --- a/networking/ip.c +++ b/networking/ip.c | |||
@@ -37,35 +37,35 @@ static int ip_do(int (*ip_func)(char **argv), char **argv) | |||
37 | 37 | ||
38 | #if ENABLE_FEATURE_IP_ADDRESS | 38 | #if ENABLE_FEATURE_IP_ADDRESS |
39 | int ipaddr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 39 | int ipaddr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
40 | int ipaddr_main(int argc, char **argv) | 40 | int ipaddr_main(int argc ATTRIBUTE_UNUSED, char **argv) |
41 | { | 41 | { |
42 | return ip_do(do_ipaddr, argv); | 42 | return ip_do(do_ipaddr, argv); |
43 | } | 43 | } |
44 | #endif | 44 | #endif |
45 | #if ENABLE_FEATURE_IP_LINK | 45 | #if ENABLE_FEATURE_IP_LINK |
46 | int iplink_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 46 | int iplink_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
47 | int iplink_main(int argc, char **argv) | 47 | int iplink_main(int argc ATTRIBUTE_UNUSED, char **argv) |
48 | { | 48 | { |
49 | return ip_do(do_iplink, argv); | 49 | return ip_do(do_iplink, argv); |
50 | } | 50 | } |
51 | #endif | 51 | #endif |
52 | #if ENABLE_FEATURE_IP_ROUTE | 52 | #if ENABLE_FEATURE_IP_ROUTE |
53 | int iproute_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 53 | int iproute_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
54 | int iproute_main(int argc, char **argv) | 54 | int iproute_main(int argc ATTRIBUTE_UNUSED, char **argv) |
55 | { | 55 | { |
56 | return ip_do(do_iproute, argv); | 56 | return ip_do(do_iproute, argv); |
57 | } | 57 | } |
58 | #endif | 58 | #endif |
59 | #if ENABLE_FEATURE_IP_RULE | 59 | #if ENABLE_FEATURE_IP_RULE |
60 | int iprule_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 60 | int iprule_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
61 | int iprule_main(int argc, char **argv) | 61 | int iprule_main(int argc ATTRIBUTE_UNUSED, char **argv) |
62 | { | 62 | { |
63 | return ip_do(do_iprule, argv); | 63 | return ip_do(do_iprule, argv); |
64 | } | 64 | } |
65 | #endif | 65 | #endif |
66 | #if ENABLE_FEATURE_IP_TUNNEL | 66 | #if ENABLE_FEATURE_IP_TUNNEL |
67 | int iptunnel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 67 | int iptunnel_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
68 | int iptunnel_main(int argc, char **argv) | 68 | int iptunnel_main(int argc ATTRIBUTE_UNUSED, char **argv) |
69 | { | 69 | { |
70 | return ip_do(do_iptunnel, argv); | 70 | return ip_do(do_iptunnel, argv); |
71 | } | 71 | } |
@@ -73,7 +73,7 @@ int iptunnel_main(int argc, char **argv) | |||
73 | 73 | ||
74 | 74 | ||
75 | int ip_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 75 | int ip_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
76 | int ip_main(int argc, char **argv) | 76 | int ip_main(int argc ATTRIBUTE_UNUSED, char **argv) |
77 | { | 77 | { |
78 | static const char keywords[] ALIGN1 = | 78 | static const char keywords[] ALIGN1 = |
79 | USE_FEATURE_IP_ADDRESS("address\0") | 79 | USE_FEATURE_IP_ADDRESS("address\0") |
diff --git a/networking/isrv_identd.c b/networking/isrv_identd.c index 33338572d..d60c9fbaf 100644 --- a/networking/isrv_identd.c +++ b/networking/isrv_identd.c | |||
@@ -76,7 +76,7 @@ static int do_rd(int fd, void **paramp) | |||
76 | return retval; | 76 | return retval; |
77 | } | 77 | } |
78 | 78 | ||
79 | static int do_timeout(void **paramp) | 79 | static int do_timeout(void **paramp ATTRIBUTE_UNUSED) |
80 | { | 80 | { |
81 | return 1; /* terminate session */ | 81 | return 1; /* terminate session */ |
82 | } | 82 | } |
@@ -93,7 +93,7 @@ static void inetd_mode(void) | |||
93 | } | 93 | } |
94 | 94 | ||
95 | int fakeidentd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 95 | int fakeidentd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
96 | int fakeidentd_main(int argc, char **argv) | 96 | int fakeidentd_main(int argc ATTRIBUTE_UNUSED, char **argv) |
97 | { | 97 | { |
98 | enum { | 98 | enum { |
99 | OPT_foreground = 0x1, | 99 | OPT_foreground = 0x1, |
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c index 7b5de92c2..3cfc9ccec 100644 --- a/networking/libiproute/ll_map.c +++ b/networking/libiproute/ll_map.c | |||
@@ -39,7 +39,9 @@ static struct idxmap *find_by_index(int idx) | |||
39 | return NULL; | 39 | return NULL; |
40 | } | 40 | } |
41 | 41 | ||
42 | int ll_remember_index(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) | 42 | int ll_remember_index(struct sockaddr_nl *who ATTRIBUTE_UNUSED, |
43 | struct nlmsghdr *n, | ||
44 | void *arg ATTRIBUTE_UNUSED) | ||
43 | { | 45 | { |
44 | int h; | 46 | int h; |
45 | struct ifinfomsg *ifi = NLMSG_DATA(n); | 47 | struct ifinfomsg *ifi = NLMSG_DATA(n); |
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c index ce4829584..34f715fc5 100644 --- a/networking/nc_bloaty.c +++ b/networking/nc_bloaty.c | |||
@@ -177,7 +177,7 @@ static void unarm(void) | |||
177 | } | 177 | } |
178 | 178 | ||
179 | /* timeout and other signal handling cruft */ | 179 | /* timeout and other signal handling cruft */ |
180 | static void tmtravel(int sig) | 180 | static void tmtravel(int sig ATTRIBUTE_UNUSED) |
181 | { | 181 | { |
182 | unarm(); | 182 | unarm(); |
183 | longjmp(jbuf, 1); | 183 | longjmp(jbuf, 1); |
diff --git a/networking/netstat.c b/networking/netstat.c index 399ff9b42..fd8d8ecf3 100644 --- a/networking/netstat.c +++ b/networking/netstat.c | |||
@@ -486,7 +486,7 @@ static void do_info(const char *file, const char *name, int (*proc)(int, char *) | |||
486 | } | 486 | } |
487 | 487 | ||
488 | int netstat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 488 | int netstat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
489 | int netstat_main(int argc, char **argv) | 489 | int netstat_main(int argc ATTRIBUTE_UNUSED, char **argv) |
490 | { | 490 | { |
491 | const char *net_conn_line_header = PRINT_NET_CONN_HEADER; | 491 | const char *net_conn_line_header = PRINT_NET_CONN_HEADER; |
492 | unsigned opt; | 492 | unsigned opt; |
diff --git a/networking/ping.c b/networking/ping.c index 11138c036..93b2e02f1 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -174,7 +174,7 @@ static void ping6(len_and_sockaddr *lsa) | |||
174 | #endif | 174 | #endif |
175 | 175 | ||
176 | int ping_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 176 | int ping_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
177 | int ping_main(int argc, char **argv) | 177 | int ping_main(int argc ATTRIBUTE_UNUSED, char **argv) |
178 | { | 178 | { |
179 | len_and_sockaddr *lsa; | 179 | len_and_sockaddr *lsa; |
180 | #if ENABLE_PING6 | 180 | #if ENABLE_PING6 |
@@ -495,7 +495,7 @@ static void unpack4(char *buf, int sz, struct sockaddr_in *from) | |||
495 | } | 495 | } |
496 | } | 496 | } |
497 | #if ENABLE_PING6 | 497 | #if ENABLE_PING6 |
498 | static void unpack6(char *packet, int sz, struct sockaddr_in6 *from, int hoplimit) | 498 | static void unpack6(char *packet, int sz, /*struct sockaddr_in6 *from,*/ int hoplimit) |
499 | { | 499 | { |
500 | struct icmp6_hdr *icmppkt; | 500 | struct icmp6_hdr *icmppkt; |
501 | char buf[INET6_ADDRSTRLEN]; | 501 | char buf[INET6_ADDRSTRLEN]; |
@@ -658,7 +658,7 @@ static void ping6(len_and_sockaddr *lsa) | |||
658 | hoplimit = *(int*)CMSG_DATA(mp); | 658 | hoplimit = *(int*)CMSG_DATA(mp); |
659 | } | 659 | } |
660 | } | 660 | } |
661 | unpack6(packet, c, &from, hoplimit); | 661 | unpack6(packet, c, /*&from,*/ hoplimit); |
662 | if (pingcount > 0 && nreceived >= pingcount) | 662 | if (pingcount > 0 && nreceived >= pingcount) |
663 | break; | 663 | break; |
664 | } | 664 | } |
@@ -683,7 +683,7 @@ static void ping(len_and_sockaddr *lsa) | |||
683 | } | 683 | } |
684 | 684 | ||
685 | int ping_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 685 | int ping_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
686 | int ping_main(int argc, char **argv) | 686 | int ping_main(int argc ATTRIBUTE_UNUSED, char **argv) |
687 | { | 687 | { |
688 | len_and_sockaddr *lsa; | 688 | len_and_sockaddr *lsa; |
689 | char *opt_c, *opt_s; | 689 | char *opt_c, *opt_s; |
diff --git a/networking/pscan.c b/networking/pscan.c index 830419371..022d21254 100644 --- a/networking/pscan.c +++ b/networking/pscan.c | |||
@@ -31,7 +31,7 @@ static const char *port_name(unsigned port) | |||
31 | #define MONOTONIC_US() ((unsigned)monotonic_us()) | 31 | #define MONOTONIC_US() ((unsigned)monotonic_us()) |
32 | 32 | ||
33 | int pscan_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 33 | int pscan_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
34 | int pscan_main(int argc, char **argv) | 34 | int pscan_main(int argc ATTRIBUTE_UNUSED, char **argv) |
35 | { | 35 | { |
36 | const char *opt_max_port = "1024"; /* -P: default max port */ | 36 | const char *opt_max_port = "1024"; /* -P: default max port */ |
37 | const char *opt_min_port = "1"; /* -p: default min port */ | 37 | const char *opt_min_port = "1"; /* -p: default min port */ |
diff --git a/networking/route.c b/networking/route.c index 6f945b9f8..53e3988c1 100644 --- a/networking/route.c +++ b/networking/route.c | |||
@@ -539,7 +539,7 @@ void bb_displayroutes(int noresolve, int netstatfmt) | |||
539 | 539 | ||
540 | #if ENABLE_FEATURE_IPV6 | 540 | #if ENABLE_FEATURE_IPV6 |
541 | 541 | ||
542 | static void INET6_displayroutes(int noresolve) | 542 | static void INET6_displayroutes(void) |
543 | { | 543 | { |
544 | char addr6[128], *naddr6; | 544 | char addr6[128], *naddr6; |
545 | /* In addr6x, we store both 40-byte ':'-delimited ipv6 addresses. | 545 | /* In addr6x, we store both 40-byte ':'-delimited ipv6 addresses. |
@@ -642,7 +642,7 @@ static const char tbl_verb[] ALIGN1 = | |||
642 | ; | 642 | ; |
643 | 643 | ||
644 | int route_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 644 | int route_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
645 | int route_main(int argc, char **argv) | 645 | int route_main(int argc ATTRIBUTE_UNUSED, char **argv) |
646 | { | 646 | { |
647 | unsigned opt; | 647 | unsigned opt; |
648 | int what; | 648 | int what; |
@@ -675,7 +675,7 @@ int route_main(int argc, char **argv) | |||
675 | int noresolve = (opt & ROUTE_OPT_n) ? 0x0fff : 0; | 675 | int noresolve = (opt & ROUTE_OPT_n) ? 0x0fff : 0; |
676 | #if ENABLE_FEATURE_IPV6 | 676 | #if ENABLE_FEATURE_IPV6 |
677 | if (opt & ROUTE_OPT_INET6) | 677 | if (opt & ROUTE_OPT_INET6) |
678 | INET6_displayroutes(noresolve); | 678 | INET6_displayroutes(); |
679 | else | 679 | else |
680 | #endif | 680 | #endif |
681 | bb_displayroutes(noresolve, opt & ROUTE_OPT_e); | 681 | bb_displayroutes(noresolve, opt & ROUTE_OPT_e); |
diff --git a/networking/sendmail.c b/networking/sendmail.c index eb356dcf5..241028b92 100644 --- a/networking/sendmail.c +++ b/networking/sendmail.c | |||
@@ -252,7 +252,7 @@ static void pop3_message(const char *filename) | |||
252 | #endif | 252 | #endif |
253 | 253 | ||
254 | int sendgetmail_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 254 | int sendgetmail_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
255 | int sendgetmail_main(int argc, char **argv) | 255 | int sendgetmail_main(int argc ATTRIBUTE_UNUSED, char **argv) |
256 | { | 256 | { |
257 | llist_t *opt_recipients = NULL; | 257 | llist_t *opt_recipients = NULL; |
258 | 258 | ||
diff --git a/networking/slattach.c b/networking/slattach.c index 1987eb39c..3ffbb3ba8 100644 --- a/networking/slattach.c +++ b/networking/slattach.c | |||
@@ -114,13 +114,13 @@ static void set_state(struct termios *state, int encap) | |||
114 | } | 114 | } |
115 | } | 115 | } |
116 | 116 | ||
117 | static void sig_handler(int signo) | 117 | static void sig_handler(int signo ATTRIBUTE_UNUSED) |
118 | { | 118 | { |
119 | restore_state_and_exit(0); | 119 | restore_state_and_exit(0); |
120 | } | 120 | } |
121 | 121 | ||
122 | int slattach_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 122 | int slattach_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
123 | int slattach_main(int argc, char **argv) | 123 | int slattach_main(int argc ATTRIBUTE_UNUSED, char **argv) |
124 | { | 124 | { |
125 | /* Line discipline code table */ | 125 | /* Line discipline code table */ |
126 | static const char proto_names[] ALIGN1 = | 126 | static const char proto_names[] ALIGN1 = |
diff --git a/networking/telnetd.c b/networking/telnetd.c index 05de49e8a..20c57925f 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -338,7 +338,7 @@ free_session(struct tsession *ts) | |||
338 | 338 | ||
339 | #endif | 339 | #endif |
340 | 340 | ||
341 | static void handle_sigchld(int sig) | 341 | static void handle_sigchld(int sig ATTRIBUTE_UNUSED) |
342 | { | 342 | { |
343 | pid_t pid; | 343 | pid_t pid; |
344 | struct tsession *ts; | 344 | struct tsession *ts; |
@@ -360,7 +360,7 @@ static void handle_sigchld(int sig) | |||
360 | } | 360 | } |
361 | 361 | ||
362 | int telnetd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 362 | int telnetd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
363 | int telnetd_main(int argc, char **argv) | 363 | int telnetd_main(int argc ATTRIBUTE_UNUSED, char **argv) |
364 | { | 364 | { |
365 | fd_set rdfdset, wrfdset; | 365 | fd_set rdfdset, wrfdset; |
366 | unsigned opt; | 366 | unsigned opt; |
diff --git a/networking/tftp.c b/networking/tftp.c index 6cad295e3..14c340b22 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -392,7 +392,7 @@ static int tftp( USE_GETPUT(const int cmd,) | |||
392 | } | 392 | } |
393 | 393 | ||
394 | int tftp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 394 | int tftp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
395 | int tftp_main(int argc, char **argv) | 395 | int tftp_main(int argc ATTRIBUTE_UNUSED, char **argv) |
396 | { | 396 | { |
397 | len_and_sockaddr *peer_lsa; | 397 | len_and_sockaddr *peer_lsa; |
398 | const char *localfile = NULL; | 398 | const char *localfile = NULL; |
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 7fca184ab..576b1cbb8 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -129,7 +129,7 @@ static uint8_t* alloc_dhcp_option(int code, const char *str, int extra) | |||
129 | 129 | ||
130 | 130 | ||
131 | int udhcpc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 131 | int udhcpc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
132 | int udhcpc_main(int argc, char **argv) | 132 | int udhcpc_main(int argc ATTRIBUTE_UNUSED, char **argv) |
133 | { | 133 | { |
134 | uint8_t *temp, *message; | 134 | uint8_t *temp, *message; |
135 | char *str_c, *str_V, *str_h, *str_F, *str_r, *str_T, *str_A, *str_t; | 135 | char *str_c, *str_V, *str_h, *str_F, *str_r, *str_T, *str_A, *str_t; |
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c index eb7323da7..263719657 100644 --- a/networking/udhcp/dhcpd.c +++ b/networking/udhcp/dhcpd.c | |||
@@ -23,7 +23,7 @@ struct dhcpOfferedAddr *leases; | |||
23 | 23 | ||
24 | 24 | ||
25 | int udhcpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 25 | int udhcpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
26 | int udhcpd_main(int argc, char **argv) | 26 | int udhcpd_main(int argc ATTRIBUTE_UNUSED, char **argv) |
27 | { | 27 | { |
28 | fd_set rfds; | 28 | fd_set rfds; |
29 | struct timeval tv; | 29 | struct timeval tv; |
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c index 218e6bc57..83b384177 100644 --- a/networking/udhcp/dumpleases.c +++ b/networking/udhcp/dumpleases.c | |||
@@ -8,7 +8,7 @@ | |||
8 | #include "dhcpd.h" | 8 | #include "dhcpd.h" |
9 | 9 | ||
10 | int dumpleases_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 10 | int dumpleases_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
11 | int dumpleases_main(int argc, char **argv) | 11 | int dumpleases_main(int argc ATTRIBUTE_UNUSED, char **argv) |
12 | { | 12 | { |
13 | int fd; | 13 | int fd; |
14 | int i; | 14 | int i; |
diff --git a/networking/wget.c b/networking/wget.c index a77a2add7..dc1dc2ad9 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -387,7 +387,7 @@ static char *gethdr(char *buf, size_t bufsiz, FILE *fp /*, int *istrunc*/) | |||
387 | 387 | ||
388 | 388 | ||
389 | int wget_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 389 | int wget_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
390 | int wget_main(int argc, char **argv) | 390 | int wget_main(int argc ATTRIBUTE_UNUSED, char **argv) |
391 | { | 391 | { |
392 | char buf[512]; | 392 | char buf[512]; |
393 | struct host_info server, target; | 393 | struct host_info server, target; |