diff options
Diffstat (limited to 'networking')
43 files changed, 98 insertions, 98 deletions
diff --git a/networking/arp.c b/networking/arp.c index ae1bb1a2e..ac8c870f8 100644 --- a/networking/arp.c +++ b/networking/arp.c | |||
@@ -441,7 +441,7 @@ static int arp_show(char *name) | |||
441 | } | 441 | } |
442 | 442 | ||
443 | int arp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 443 | int arp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
444 | int arp_main(int argc ATTRIBUTE_UNUSED, char **argv) | 444 | int arp_main(int argc UNUSED_PARAM, char **argv) |
445 | { | 445 | { |
446 | char *hw_type; | 446 | char *hw_type; |
447 | char *protocol; | 447 | char *protocol; |
diff --git a/networking/arping.c b/networking/arping.c index 0a444f15c..aba32b869 100644 --- a/networking/arping.c +++ b/networking/arping.c | |||
@@ -107,7 +107,7 @@ static int send_pack(struct in_addr *src_addr, | |||
107 | return err; | 107 | return err; |
108 | } | 108 | } |
109 | 109 | ||
110 | static void finish(void) ATTRIBUTE_NORETURN; | 110 | static void finish(void) NORETURN; |
111 | static void finish(void) | 111 | static void finish(void) |
112 | { | 112 | { |
113 | if (!(option_mask32 & QUIET)) { | 113 | if (!(option_mask32 & QUIET)) { |
@@ -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 ATTRIBUTE_UNUSED, char **argv) | 248 | int arping_main(int argc UNUSED_PARAM, 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/brctl.c b/networking/brctl.c index acc789722..102776e80 100644 --- a/networking/brctl.c +++ b/networking/brctl.c | |||
@@ -81,7 +81,7 @@ static void arm_ioctl(unsigned long *args, | |||
81 | 81 | ||
82 | 82 | ||
83 | int brctl_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 83 | int brctl_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
84 | int brctl_main(int argc ATTRIBUTE_UNUSED, char **argv) | 84 | int brctl_main(int argc UNUSED_PARAM, char **argv) |
85 | { | 85 | { |
86 | static const char keywords[] ALIGN1 = | 86 | static const char keywords[] ALIGN1 = |
87 | "addbr\0" "delbr\0" "addif\0" "delif\0" | 87 | "addbr\0" "delbr\0" "addif\0" "delif\0" |
diff --git a/networking/dnsd.c b/networking/dnsd.c index bd0fad4c2..8512f0ceb 100644 --- a/networking/dnsd.c +++ b/networking/dnsd.c | |||
@@ -327,7 +327,7 @@ static void interrupt(int sig) | |||
327 | } | 327 | } |
328 | 328 | ||
329 | int dnsd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 329 | int dnsd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
330 | int dnsd_main(int argc ATTRIBUTE_UNUSED, char **argv) | 330 | int dnsd_main(int argc UNUSED_PARAM, char **argv) |
331 | { | 331 | { |
332 | const char *listen_interface = "0.0.0.0"; | 332 | const char *listen_interface = "0.0.0.0"; |
333 | char *sttl, *sport; | 333 | char *sttl, *sport; |
diff --git a/networking/ether-wake.c b/networking/ether-wake.c index fcd7dd2bc..a37b6eb79 100644 --- a/networking/ether-wake.c +++ b/networking/ether-wake.c | |||
@@ -179,7 +179,7 @@ static int get_wol_pw(const char *ethoptarg, unsigned char *wol_passwd) | |||
179 | } | 179 | } |
180 | 180 | ||
181 | int ether_wake_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 181 | int ether_wake_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
182 | int ether_wake_main(int argc ATTRIBUTE_UNUSED, char **argv) | 182 | int ether_wake_main(int argc UNUSED_PARAM, char **argv) |
183 | { | 183 | { |
184 | const char *ifname = "eth0"; | 184 | const char *ifname = "eth0"; |
185 | char *pass; | 185 | char *pass; |
diff --git a/networking/ftpgetput.c b/networking/ftpgetput.c index f732d02a4..d39b73ebb 100644 --- a/networking/ftpgetput.c +++ b/networking/ftpgetput.c | |||
@@ -39,7 +39,7 @@ struct BUG_G_too_big { | |||
39 | #define INIT_G() do { } while (0) | 39 | #define INIT_G() do { } while (0) |
40 | 40 | ||
41 | 41 | ||
42 | static void ftp_die(const char *msg) ATTRIBUTE_NORETURN; | 42 | static void ftp_die(const char *msg) NORETURN; |
43 | static void ftp_die(const char *msg) | 43 | static void ftp_die(const char *msg) |
44 | { | 44 | { |
45 | char *cp = buf; /* buf holds peer's response */ | 45 | char *cp = buf; /* buf holds peer's response */ |
@@ -276,7 +276,7 @@ static const char ftpgetput_longopts[] ALIGN1 = | |||
276 | #endif | 276 | #endif |
277 | 277 | ||
278 | int ftpgetput_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 278 | int ftpgetput_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
279 | int ftpgetput_main(int argc ATTRIBUTE_UNUSED, char **argv) | 279 | int ftpgetput_main(int argc UNUSED_PARAM, char **argv) |
280 | { | 280 | { |
281 | unsigned opt; | 281 | unsigned opt; |
282 | const char *port = "ftp"; | 282 | const char *port = "ftp"; |
diff --git a/networking/httpd.c b/networking/httpd.c index 9b4b7172d..30ef30552 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -338,7 +338,7 @@ enum { | |||
338 | SEND_BODY = (1 << 1), | 338 | SEND_BODY = (1 << 1), |
339 | SEND_HEADERS_AND_BODY = SEND_HEADERS + SEND_BODY, | 339 | SEND_HEADERS_AND_BODY = SEND_HEADERS + SEND_BODY, |
340 | }; | 340 | }; |
341 | static void send_file_and_exit(const char *url, int what) ATTRIBUTE_NORETURN; | 341 | static void send_file_and_exit(const char *url, int what) NORETURN; |
342 | 342 | ||
343 | static void free_llist(has_next_ptr **pptr) | 343 | static void free_llist(has_next_ptr **pptr) |
344 | { | 344 | { |
@@ -919,7 +919,7 @@ static int openServer(void) | |||
919 | /* | 919 | /* |
920 | * Log the connection closure and exit. | 920 | * Log the connection closure and exit. |
921 | */ | 921 | */ |
922 | static void log_and_exit(void) ATTRIBUTE_NORETURN; | 922 | static void log_and_exit(void) NORETURN; |
923 | static void log_and_exit(void) | 923 | static void log_and_exit(void) |
924 | { | 924 | { |
925 | /* Paranoia. IE said to be buggy. It may send some extra data | 925 | /* Paranoia. IE said to be buggy. It may send some extra data |
@@ -1050,7 +1050,7 @@ static void send_headers(int responseNum) | |||
1050 | } | 1050 | } |
1051 | } | 1051 | } |
1052 | 1052 | ||
1053 | static void send_headers_and_exit(int responseNum) ATTRIBUTE_NORETURN; | 1053 | static void send_headers_and_exit(int responseNum) NORETURN; |
1054 | static void send_headers_and_exit(int responseNum) | 1054 | static void send_headers_and_exit(int responseNum) |
1055 | { | 1055 | { |
1056 | send_headers(responseNum); | 1056 | send_headers(responseNum); |
@@ -1094,7 +1094,7 @@ static int get_line(void) | |||
1094 | #if ENABLE_FEATURE_HTTPD_CGI || ENABLE_FEATURE_HTTPD_PROXY | 1094 | #if ENABLE_FEATURE_HTTPD_CGI || ENABLE_FEATURE_HTTPD_PROXY |
1095 | 1095 | ||
1096 | /* gcc 4.2.1 fares better with NOINLINE */ | 1096 | /* gcc 4.2.1 fares better with NOINLINE */ |
1097 | static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post_len) ATTRIBUTE_NORETURN; | 1097 | static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post_len) NORETURN; |
1098 | static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post_len) | 1098 | static NOINLINE void cgi_io_loop_and_exit(int fromCgi_rd, int toCgi_wr, int post_len) |
1099 | { | 1099 | { |
1100 | enum { FROM_CGI = 1, TO_CGI = 2 }; /* indexes in pfd[] */ | 1100 | enum { FROM_CGI = 1, TO_CGI = 2 }; /* indexes in pfd[] */ |
@@ -1292,7 +1292,7 @@ static void send_cgi_and_exit( | |||
1292 | const char *request, | 1292 | const char *request, |
1293 | int post_len, | 1293 | int post_len, |
1294 | const char *cookie, | 1294 | const char *cookie, |
1295 | const char *content_type) ATTRIBUTE_NORETURN; | 1295 | const char *content_type) NORETURN; |
1296 | static void send_cgi_and_exit( | 1296 | static void send_cgi_and_exit( |
1297 | const char *url, | 1297 | const char *url, |
1298 | const char *request, | 1298 | const char *request, |
@@ -1752,8 +1752,8 @@ static Htaccess_Proxy *find_proxy_entry(const char *url) | |||
1752 | /* | 1752 | /* |
1753 | * Handle timeouts | 1753 | * Handle timeouts |
1754 | */ | 1754 | */ |
1755 | static void exit_on_signal(int sig) ATTRIBUTE_NORETURN; | 1755 | static void exit_on_signal(int sig) NORETURN; |
1756 | static void exit_on_signal(int sig ATTRIBUTE_UNUSED) | 1756 | static void exit_on_signal(int sig UNUSED_PARAM) |
1757 | { | 1757 | { |
1758 | send_headers_and_exit(HTTP_REQUEST_TIMEOUT); | 1758 | send_headers_and_exit(HTTP_REQUEST_TIMEOUT); |
1759 | } | 1759 | } |
@@ -1761,7 +1761,7 @@ static void exit_on_signal(int sig ATTRIBUTE_UNUSED) | |||
1761 | /* | 1761 | /* |
1762 | * Handle an incoming http request and exit. | 1762 | * Handle an incoming http request and exit. |
1763 | */ | 1763 | */ |
1764 | static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) ATTRIBUTE_NORETURN; | 1764 | static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) NORETURN; |
1765 | static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) | 1765 | static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) |
1766 | { | 1766 | { |
1767 | static const char request_GET[] ALIGN1 = "GET"; | 1767 | static const char request_GET[] ALIGN1 = "GET"; |
@@ -2151,7 +2151,7 @@ static void handle_incoming_and_exit(const len_and_sockaddr *fromAddr) | |||
2151 | * Never returns. | 2151 | * Never returns. |
2152 | */ | 2152 | */ |
2153 | #if BB_MMU | 2153 | #if BB_MMU |
2154 | static void mini_httpd(int server_socket) ATTRIBUTE_NORETURN; | 2154 | static void mini_httpd(int server_socket) NORETURN; |
2155 | static void mini_httpd(int server_socket) | 2155 | static void mini_httpd(int server_socket) |
2156 | { | 2156 | { |
2157 | /* NB: it's best to not use xfuncs in this loop before fork(). | 2157 | /* NB: it's best to not use xfuncs in this loop before fork(). |
@@ -2190,7 +2190,7 @@ static void mini_httpd(int server_socket) | |||
2190 | /* never reached */ | 2190 | /* never reached */ |
2191 | } | 2191 | } |
2192 | #else | 2192 | #else |
2193 | static void mini_httpd_nommu(int server_socket, int argc, char **argv) ATTRIBUTE_NORETURN; | 2193 | static void mini_httpd_nommu(int server_socket, int argc, char **argv) NORETURN; |
2194 | static void mini_httpd_nommu(int server_socket, int argc, char **argv) | 2194 | static void mini_httpd_nommu(int server_socket, int argc, char **argv) |
2195 | { | 2195 | { |
2196 | char *argv_copy[argc + 2]; | 2196 | char *argv_copy[argc + 2]; |
@@ -2241,7 +2241,7 @@ static void mini_httpd_nommu(int server_socket, int argc, char **argv) | |||
2241 | * Process a HTTP connection on stdin/out. | 2241 | * Process a HTTP connection on stdin/out. |
2242 | * Never returns. | 2242 | * Never returns. |
2243 | */ | 2243 | */ |
2244 | static void mini_httpd_inetd(void) ATTRIBUTE_NORETURN; | 2244 | static void mini_httpd_inetd(void) NORETURN; |
2245 | static void mini_httpd_inetd(void) | 2245 | static void mini_httpd_inetd(void) |
2246 | { | 2246 | { |
2247 | len_and_sockaddr fromAddr; | 2247 | len_and_sockaddr fromAddr; |
@@ -2289,7 +2289,7 @@ enum { | |||
2289 | 2289 | ||
2290 | 2290 | ||
2291 | int httpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 2291 | int httpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
2292 | int httpd_main(int argc ATTRIBUTE_UNUSED, char **argv) | 2292 | int httpd_main(int argc UNUSED_PARAM, char **argv) |
2293 | { | 2293 | { |
2294 | int server_socket = server_socket; /* for gcc */ | 2294 | int server_socket = server_socket; /* for gcc */ |
2295 | unsigned opt; | 2295 | unsigned opt; |
diff --git a/networking/ifenslave.c b/networking/ifenslave.c index 4c7eadc83..13a32efc8 100644 --- a/networking/ifenslave.c +++ b/networking/ifenslave.c | |||
@@ -446,7 +446,7 @@ static NOINLINE void get_drv_info(char *master_ifname) | |||
446 | } | 446 | } |
447 | 447 | ||
448 | int ifenslave_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 448 | int ifenslave_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
449 | int ifenslave_main(int argc ATTRIBUTE_UNUSED, char **argv) | 449 | int ifenslave_main(int argc UNUSED_PARAM, char **argv) |
450 | { | 450 | { |
451 | char *master_ifname, *slave_ifname; | 451 | char *master_ifname, *slave_ifname; |
452 | int rv; | 452 | int rv; |
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index c12391863..af7bb6e17 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -512,8 +512,8 @@ static int dhcp_up(struct interface_defn_t *ifd, execfn *exec) | |||
512 | ifd, exec); | 512 | ifd, exec); |
513 | } | 513 | } |
514 | #else | 514 | #else |
515 | static int dhcp_up(struct interface_defn_t *ifd ATTRIBUTE_UNUSED, | 515 | static int dhcp_up(struct interface_defn_t *ifd UNUSED_PARAM, |
516 | execfn *exec ATTRIBUTE_UNUSED) | 516 | execfn *exec UNUSED_PARAM) |
517 | { | 517 | { |
518 | return 0; /* no dhcp support */ | 518 | return 0; /* no dhcp support */ |
519 | } | 519 | } |
@@ -537,14 +537,14 @@ static int dhcp_down(struct interface_defn_t *ifd, execfn *exec) | |||
537 | "`cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec); | 537 | "`cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec); |
538 | } | 538 | } |
539 | #else | 539 | #else |
540 | static int dhcp_down(struct interface_defn_t *ifd ATTRIBUTE_UNUSED, | 540 | static int dhcp_down(struct interface_defn_t *ifd UNUSED_PARAM, |
541 | execfn *exec ATTRIBUTE_UNUSED) | 541 | execfn *exec UNUSED_PARAM) |
542 | { | 542 | { |
543 | return 0; /* no dhcp support */ | 543 | return 0; /* no dhcp support */ |
544 | } | 544 | } |
545 | #endif | 545 | #endif |
546 | 546 | ||
547 | static int manual_up_down(struct interface_defn_t *ifd ATTRIBUTE_UNUSED, execfn *exec ATTRIBUTE_UNUSED) | 547 | static int manual_up_down(struct interface_defn_t *ifd UNUSED_PARAM, execfn *exec UNUSED_PARAM) |
548 | { | 548 | { |
549 | return 1; | 549 | return 1; |
550 | } | 550 | } |
diff --git a/networking/inetd.c b/networking/inetd.c index 08c09953b..5f352710b 100644 --- a/networking/inetd.c +++ b/networking/inetd.c | |||
@@ -887,7 +887,7 @@ static int same_serv_addr_proto(servtab_t *old, servtab_t *new) | |||
887 | return 1; | 887 | return 1; |
888 | } | 888 | } |
889 | 889 | ||
890 | static void reread_config_file(int sig ATTRIBUTE_UNUSED) | 890 | static void reread_config_file(int sig UNUSED_PARAM) |
891 | { | 891 | { |
892 | servtab_t *sep, *cp, **sepp; | 892 | servtab_t *sep, *cp, **sepp; |
893 | len_and_sockaddr *lsa; | 893 | len_and_sockaddr *lsa; |
@@ -1057,7 +1057,7 @@ static void reread_config_file(int sig ATTRIBUTE_UNUSED) | |||
1057 | restore_sigmask(&omask); | 1057 | restore_sigmask(&omask); |
1058 | } | 1058 | } |
1059 | 1059 | ||
1060 | static void reap_child(int sig ATTRIBUTE_UNUSED) | 1060 | static void reap_child(int sig UNUSED_PARAM) |
1061 | { | 1061 | { |
1062 | pid_t pid; | 1062 | pid_t pid; |
1063 | int status; | 1063 | int status; |
@@ -1084,7 +1084,7 @@ static void reap_child(int sig ATTRIBUTE_UNUSED) | |||
1084 | errno = save_errno; | 1084 | errno = save_errno; |
1085 | } | 1085 | } |
1086 | 1086 | ||
1087 | static void retry_network_setup(int sig ATTRIBUTE_UNUSED) | 1087 | static void retry_network_setup(int sig UNUSED_PARAM) |
1088 | { | 1088 | { |
1089 | servtab_t *sep; | 1089 | servtab_t *sep; |
1090 | 1090 | ||
@@ -1100,7 +1100,7 @@ static void retry_network_setup(int sig ATTRIBUTE_UNUSED) | |||
1100 | } | 1100 | } |
1101 | } | 1101 | } |
1102 | 1102 | ||
1103 | static void clean_up_and_exit(int sig ATTRIBUTE_UNUSED) | 1103 | static void clean_up_and_exit(int sig UNUSED_PARAM) |
1104 | { | 1104 | { |
1105 | servtab_t *sep; | 1105 | servtab_t *sep; |
1106 | 1106 | ||
@@ -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 ATTRIBUTE_UNUSED, char **argv) | 1131 | int inetd_main(int argc UNUSED_PARAM, 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; |
@@ -1423,7 +1423,7 @@ static const char *const cat_args[] = { "cat", NULL }; | |||
1423 | #if ENABLE_FEATURE_INETD_SUPPORT_BUILTIN_ECHO | 1423 | #if ENABLE_FEATURE_INETD_SUPPORT_BUILTIN_ECHO |
1424 | /* Echo service -- echo data back. */ | 1424 | /* Echo service -- echo data back. */ |
1425 | /* ARGSUSED */ | 1425 | /* ARGSUSED */ |
1426 | static void echo_stream(int s, servtab_t *sep ATTRIBUTE_UNUSED) | 1426 | static void echo_stream(int s, servtab_t *sep UNUSED_PARAM) |
1427 | { | 1427 | { |
1428 | #if BB_MMU | 1428 | #if BB_MMU |
1429 | while (1) { | 1429 | while (1) { |
@@ -1464,7 +1464,7 @@ static void echo_dg(int s, servtab_t *sep) | |||
1464 | #if ENABLE_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD | 1464 | #if ENABLE_FEATURE_INETD_SUPPORT_BUILTIN_DISCARD |
1465 | /* Discard service -- ignore data. MMU arches only. */ | 1465 | /* Discard service -- ignore data. MMU arches only. */ |
1466 | /* ARGSUSED */ | 1466 | /* ARGSUSED */ |
1467 | static void discard_stream(int s, servtab_t *sep ATTRIBUTE_UNUSED) | 1467 | static void discard_stream(int s, servtab_t *sep UNUSED_PARAM) |
1468 | { | 1468 | { |
1469 | #if BB_MMU | 1469 | #if BB_MMU |
1470 | while (safe_read(s, line, LINE_SIZE) > 0) | 1470 | while (safe_read(s, line, LINE_SIZE) > 0) |
@@ -1483,7 +1483,7 @@ static void discard_stream(int s, servtab_t *sep ATTRIBUTE_UNUSED) | |||
1483 | #endif | 1483 | #endif |
1484 | } | 1484 | } |
1485 | /* ARGSUSED */ | 1485 | /* ARGSUSED */ |
1486 | static void discard_dg(int s, servtab_t *sep ATTRIBUTE_UNUSED) | 1486 | static void discard_dg(int s, servtab_t *sep UNUSED_PARAM) |
1487 | { | 1487 | { |
1488 | /* dgram builtins are non-forking - DONT BLOCK! */ | 1488 | /* dgram builtins are non-forking - DONT BLOCK! */ |
1489 | recv(s, line, LINE_SIZE, MSG_DONTWAIT); | 1489 | recv(s, line, LINE_SIZE, MSG_DONTWAIT); |
@@ -1504,7 +1504,7 @@ static void init_ring(void) | |||
1504 | } | 1504 | } |
1505 | /* Character generator. MMU arches only. */ | 1505 | /* Character generator. MMU arches only. */ |
1506 | /* ARGSUSED */ | 1506 | /* ARGSUSED */ |
1507 | static void chargen_stream(int s, servtab_t *sep ATTRIBUTE_UNUSED) | 1507 | static void chargen_stream(int s, servtab_t *sep UNUSED_PARAM) |
1508 | { | 1508 | { |
1509 | char *rs; | 1509 | char *rs; |
1510 | int len; | 1510 | int len; |
@@ -1581,7 +1581,7 @@ static uint32_t machtime(void) | |||
1581 | return htonl((uint32_t)(tv.tv_sec + 2208988800)); | 1581 | return htonl((uint32_t)(tv.tv_sec + 2208988800)); |
1582 | } | 1582 | } |
1583 | /* ARGSUSED */ | 1583 | /* ARGSUSED */ |
1584 | static void machtime_stream(int s, servtab_t *sep ATTRIBUTE_UNUSED) | 1584 | static void machtime_stream(int s, servtab_t *sep UNUSED_PARAM) |
1585 | { | 1585 | { |
1586 | uint32_t result; | 1586 | uint32_t result; |
1587 | 1587 | ||
@@ -1606,7 +1606,7 @@ static void machtime_dg(int s, servtab_t *sep) | |||
1606 | #if ENABLE_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME | 1606 | #if ENABLE_FEATURE_INETD_SUPPORT_BUILTIN_DAYTIME |
1607 | /* Return human-readable time of day */ | 1607 | /* Return human-readable time of day */ |
1608 | /* ARGSUSED */ | 1608 | /* ARGSUSED */ |
1609 | static void daytime_stream(int s, servtab_t *sep ATTRIBUTE_UNUSED) | 1609 | static void daytime_stream(int s, servtab_t *sep UNUSED_PARAM) |
1610 | { | 1610 | { |
1611 | time_t t; | 1611 | time_t t; |
1612 | 1612 | ||
diff --git a/networking/interface.c b/networking/interface.c index afc7d0b80..83b24f1d6 100644 --- a/networking/interface.c +++ b/networking/interface.c | |||
@@ -244,7 +244,7 @@ static char* FAST_FUNC UNSPEC_print(unsigned char *ptr) | |||
244 | } | 244 | } |
245 | 245 | ||
246 | /* Display an UNSPEC socket address. */ | 246 | /* Display an UNSPEC socket address. */ |
247 | static const char* FAST_FUNC UNSPEC_sprint(struct sockaddr *sap, int numeric ATTRIBUTE_UNUSED) | 247 | static const char* FAST_FUNC UNSPEC_sprint(struct sockaddr *sap, int numeric UNUSED_PARAM) |
248 | { | 248 | { |
249 | if (sap->sa_family == 0xFFFF || sap->sa_family == 0) | 249 | if (sap->sa_family == 0xFFFF || sap->sa_family == 0) |
250 | return "[NONE SET]"; | 250 | return "[NONE SET]"; |
diff --git a/networking/ip.c b/networking/ip.c index 5249217eb..7dcddfd8c 100644 --- a/networking/ip.c +++ b/networking/ip.c | |||
@@ -24,7 +24,7 @@ | |||
24 | || ENABLE_FEATURE_IP_TUNNEL \ | 24 | || ENABLE_FEATURE_IP_TUNNEL \ |
25 | || ENABLE_FEATURE_IP_RULE | 25 | || ENABLE_FEATURE_IP_RULE |
26 | 26 | ||
27 | static int ATTRIBUTE_NORETURN ip_print_help(char ATTRIBUTE_UNUSED **argv) | 27 | static int NORETURN ip_print_help(char **argv UNUSED_PARAM) |
28 | { | 28 | { |
29 | bb_show_usage(); | 29 | bb_show_usage(); |
30 | } | 30 | } |
@@ -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 ATTRIBUTE_UNUSED, char **argv) | 40 | int ipaddr_main(int argc UNUSED_PARAM, 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 ATTRIBUTE_UNUSED, char **argv) | 47 | int iplink_main(int argc UNUSED_PARAM, 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 ATTRIBUTE_UNUSED, char **argv) | 54 | int iproute_main(int argc UNUSED_PARAM, 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 ATTRIBUTE_UNUSED, char **argv) | 61 | int iprule_main(int argc UNUSED_PARAM, 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 ATTRIBUTE_UNUSED, char **argv) | 68 | int iptunnel_main(int argc UNUSED_PARAM, 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 ATTRIBUTE_UNUSED, 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 ATTRIBUTE_UNUSED, char **argv) | 76 | int ip_main(int argc UNUSED_PARAM, 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 3e0563298..e08ebd4b3 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 ATTRIBUTE_UNUSED) | 79 | static int do_timeout(void **paramp UNUSED_PARAM) |
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 ATTRIBUTE_UNUSED, char **argv) | 96 | int fakeidentd_main(int argc UNUSED_PARAM, char **argv) |
97 | { | 97 | { |
98 | enum { | 98 | enum { |
99 | OPT_foreground = 0x1, | 99 | OPT_foreground = 0x1, |
diff --git a/networking/libiproute/ip_common.h b/networking/libiproute/ip_common.h index 346d0b96c..305b491c6 100644 --- a/networking/libiproute/ip_common.h +++ b/networking/libiproute/ip_common.h | |||
@@ -21,7 +21,7 @@ extern char **ip_parse_common_args(char **argv); | |||
21 | extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); | 21 | extern int print_neigh(struct sockaddr_nl *who, struct nlmsghdr *n, void *arg); |
22 | extern int ipaddr_list_or_flush(char **argv, int flush); | 22 | extern int ipaddr_list_or_flush(char **argv, int flush); |
23 | extern int iproute_monitor(char **argv); | 23 | extern int iproute_monitor(char **argv); |
24 | extern void iplink_usage(void) ATTRIBUTE_NORETURN; | 24 | extern void iplink_usage(void) NORETURN; |
25 | extern void ipneigh_reset_filter(void); | 25 | extern void ipneigh_reset_filter(void); |
26 | 26 | ||
27 | extern int do_ipaddr(char **argv); | 27 | extern int do_ipaddr(char **argv); |
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 7a948a19d..288dccae7 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c | |||
@@ -196,8 +196,8 @@ static int flush_update(void) | |||
196 | return 0; | 196 | return 0; |
197 | } | 197 | } |
198 | 198 | ||
199 | static int print_addrinfo(const struct sockaddr_nl *who ATTRIBUTE_UNUSED, | 199 | static int print_addrinfo(const struct sockaddr_nl *who UNUSED_PARAM, |
200 | struct nlmsghdr *n, void *arg ATTRIBUTE_UNUSED) | 200 | struct nlmsghdr *n, void *arg UNUSED_PARAM) |
201 | { | 201 | { |
202 | struct ifaddrmsg *ifa = NLMSG_DATA(n); | 202 | struct ifaddrmsg *ifa = NLMSG_DATA(n); |
203 | int len = n->nlmsg_len; | 203 | int len = n->nlmsg_len; |
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c index 5aad6ed9f..3b212eed9 100644 --- a/networking/libiproute/iplink.c +++ b/networking/libiproute/iplink.c | |||
@@ -154,7 +154,7 @@ static void set_address(struct ifreq *ifr, int brd) | |||
154 | } | 154 | } |
155 | 155 | ||
156 | 156 | ||
157 | static void die_must_be_on_off(const char *msg) ATTRIBUTE_NORETURN; | 157 | static void die_must_be_on_off(const char *msg) NORETURN; |
158 | static void die_must_be_on_off(const char *msg) | 158 | static void die_must_be_on_off(const char *msg) |
159 | { | 159 | { |
160 | bb_error_msg_and_die("argument of \"%s\" must be \"on\" or \"off\"", msg); | 160 | bb_error_msg_and_die("argument of \"%s\" must be \"on\" or \"off\"", msg); |
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index 07a88c4dd..17af41f9c 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -78,8 +78,8 @@ static unsigned get_hz(void) | |||
78 | return hz_internal; | 78 | return hz_internal; |
79 | } | 79 | } |
80 | 80 | ||
81 | static int print_route(const struct sockaddr_nl *who ATTRIBUTE_UNUSED, | 81 | static int print_route(const struct sockaddr_nl *who UNUSED_PARAM, |
82 | struct nlmsghdr *n, void *arg ATTRIBUTE_UNUSED) | 82 | struct nlmsghdr *n, void *arg UNUSED_PARAM) |
83 | { | 83 | { |
84 | struct rtmsg *r = NLMSG_DATA(n); | 84 | struct rtmsg *r = NLMSG_DATA(n); |
85 | int len = n->nlmsg_len; | 85 | int len = n->nlmsg_len; |
diff --git a/networking/libiproute/iprule.c b/networking/libiproute/iprule.c index 2ee7701f8..f92607830 100644 --- a/networking/libiproute/iprule.c +++ b/networking/libiproute/iprule.c | |||
@@ -40,8 +40,8 @@ static void usage(void) | |||
40 | } | 40 | } |
41 | */ | 41 | */ |
42 | 42 | ||
43 | static int print_rule(const struct sockaddr_nl *who ATTRIBUTE_UNUSED, | 43 | static int print_rule(const struct sockaddr_nl *who UNUSED_PARAM, |
44 | struct nlmsghdr *n, void *arg ATTRIBUTE_UNUSED) | 44 | struct nlmsghdr *n, void *arg UNUSED_PARAM) |
45 | { | 45 | { |
46 | struct rtmsg *r = NLMSG_DATA(n); | 46 | struct rtmsg *r = NLMSG_DATA(n); |
47 | int len = n->nlmsg_len; | 47 | int len = n->nlmsg_len; |
diff --git a/networking/libiproute/ll_map.c b/networking/libiproute/ll_map.c index f9b697070..eeae4e252 100644 --- a/networking/libiproute/ll_map.c +++ b/networking/libiproute/ll_map.c | |||
@@ -39,9 +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(const struct sockaddr_nl *who ATTRIBUTE_UNUSED, | 42 | int ll_remember_index(const struct sockaddr_nl *who UNUSED_PARAM, |
43 | struct nlmsghdr *n, | 43 | struct nlmsghdr *n, |
44 | void *arg ATTRIBUTE_UNUSED) | 44 | void *arg UNUSED_PARAM) |
45 | { | 45 | { |
46 | int h; | 46 | int h; |
47 | struct ifinfomsg *ifi = NLMSG_DATA(n); | 47 | struct ifinfomsg *ifi = NLMSG_DATA(n); |
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c index e63bb27fb..706710e1f 100644 --- a/networking/libiproute/utils.c +++ b/networking/libiproute/utils.c | |||
@@ -279,7 +279,7 @@ int inet_addr_match(inet_prefix * a, inet_prefix * b, int bits) | |||
279 | return 0; | 279 | return 0; |
280 | } | 280 | } |
281 | 281 | ||
282 | const char *rt_addr_n2a(int af, int ATTRIBUTE_UNUSED len, | 282 | const char *rt_addr_n2a(int af, int UNUSED_PARAM len, |
283 | void *addr, char *buf, int buflen) | 283 | void *addr, char *buf, int buflen) |
284 | { | 284 | { |
285 | switch (af) { | 285 | switch (af) { |
diff --git a/networking/libiproute/utils.h b/networking/libiproute/utils.h index 06b1f04ab..607083af8 100644 --- a/networking/libiproute/utils.h +++ b/networking/libiproute/utils.h | |||
@@ -28,7 +28,7 @@ extern char _SL_; | |||
28 | #define SPRINT_BSIZE 64 | 28 | #define SPRINT_BSIZE 64 |
29 | #define SPRINT_BUF(x) char x[SPRINT_BSIZE] | 29 | #define SPRINT_BUF(x) char x[SPRINT_BSIZE] |
30 | 30 | ||
31 | extern void incomplete_command(void) ATTRIBUTE_NORETURN; | 31 | extern void incomplete_command(void) NORETURN; |
32 | 32 | ||
33 | #define NEXT_ARG() do { if (!*++argv) incomplete_command(); } while (0) | 33 | #define NEXT_ARG() do { if (!*++argv) incomplete_command(); } while (0) |
34 | 34 | ||
@@ -76,9 +76,9 @@ extern int get_s8(int8_t *val, char *arg, int base); | |||
76 | extern const char *format_host(int af, int len, void *addr, char *buf, int buflen); | 76 | extern const char *format_host(int af, int len, void *addr, char *buf, int buflen); |
77 | extern const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen); | 77 | extern const char *rt_addr_n2a(int af, int len, void *addr, char *buf, int buflen); |
78 | 78 | ||
79 | void invarg(const char *, const char *) ATTRIBUTE_NORETURN; | 79 | void invarg(const char *, const char *) NORETURN; |
80 | void duparg(const char *, const char *) ATTRIBUTE_NORETURN; | 80 | void duparg(const char *, const char *) NORETURN; |
81 | void duparg2(const char *, const char *) ATTRIBUTE_NORETURN; | 81 | void duparg2(const char *, const char *) NORETURN; |
82 | int inet_addr_match(inet_prefix *a, inet_prefix *b, int bits); | 82 | int inet_addr_match(inet_prefix *a, inet_prefix *b, int bits); |
83 | 83 | ||
84 | const char *dnet_ntop(int af, const void *addr, char *str, size_t len); | 84 | const char *dnet_ntop(int af, const void *addr, char *str, size_t len); |
diff --git a/networking/nc.c b/networking/nc.c index 2fd42d5f6..1a99f91cc 100644 --- a/networking/nc.c +++ b/networking/nc.c | |||
@@ -17,7 +17,7 @@ | |||
17 | * when compared to "standard" nc | 17 | * when compared to "standard" nc |
18 | */ | 18 | */ |
19 | 19 | ||
20 | static void timeout(int signum ATTRIBUTE_UNUSED) | 20 | static void timeout(int signum UNUSED_PARAM) |
21 | { | 21 | { |
22 | bb_error_msg_and_die("timed out"); | 22 | bb_error_msg_and_die("timed out"); |
23 | } | 23 | } |
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c index 5f7bd0372..41db94524 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 ATTRIBUTE_UNUSED) | 180 | static void tmtravel(int sig UNUSED_PARAM) |
181 | { | 181 | { |
182 | unarm(); | 182 | unarm(); |
183 | longjmp(jbuf, 1); | 183 | longjmp(jbuf, 1); |
@@ -222,7 +222,7 @@ Debug("findline returning whole thing: %d", siz); | |||
222 | that would be security-critical, which is why it's ifdefed out by default. | 222 | that would be security-critical, which is why it's ifdefed out by default. |
223 | Use at your own hairy risk; if you leave shells lying around behind open | 223 | Use at your own hairy risk; if you leave shells lying around behind open |
224 | listening ports you deserve to lose!! */ | 224 | listening ports you deserve to lose!! */ |
225 | static int doexec(char **proggie) ATTRIBUTE_NORETURN; | 225 | static int doexec(char **proggie) NORETURN; |
226 | static int doexec(char **proggie) | 226 | static int doexec(char **proggie) |
227 | { | 227 | { |
228 | xmove_fd(netfd, 0); | 228 | xmove_fd(netfd, 0); |
diff --git a/networking/netstat.c b/networking/netstat.c index fd8d8ecf3..24b26545e 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 ATTRIBUTE_UNUSED, char **argv) | 489 | int netstat_main(int argc UNUSED_PARAM, 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 3ac9481c8..5def8c335 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -80,7 +80,7 @@ static int in_cksum(unsigned short *buf, int sz) | |||
80 | 80 | ||
81 | static char *hostname; | 81 | static char *hostname; |
82 | 82 | ||
83 | static void noresp(int ign ATTRIBUTE_UNUSED) | 83 | static void noresp(int ign UNUSED_PARAM) |
84 | { | 84 | { |
85 | printf("No response from %s\n", hostname); | 85 | printf("No response from %s\n", hostname); |
86 | exit(EXIT_FAILURE); | 86 | exit(EXIT_FAILURE); |
@@ -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 ATTRIBUTE_UNUSED, char **argv) | 177 | int ping_main(int argc UNUSED_PARAM, char **argv) |
178 | { | 178 | { |
179 | len_and_sockaddr *lsa; | 179 | len_and_sockaddr *lsa; |
180 | #if ENABLE_PING6 | 180 | #if ENABLE_PING6 |
@@ -302,8 +302,8 @@ void BUG_ping_globals_too_big(void); | |||
302 | 302 | ||
303 | /**************************************************************************/ | 303 | /**************************************************************************/ |
304 | 304 | ||
305 | static void print_stats_and_exit(int junk) ATTRIBUTE_NORETURN; | 305 | static void print_stats_and_exit(int junk) NORETURN; |
306 | static void print_stats_and_exit(int junk ATTRIBUTE_UNUSED) | 306 | static void print_stats_and_exit(int junk UNUSED_PARAM) |
307 | { | 307 | { |
308 | signal(SIGINT, SIG_IGN); | 308 | signal(SIGINT, SIG_IGN); |
309 | 309 | ||
@@ -366,7 +366,7 @@ static void sendping_tail(void (*sp)(int), const void *pkt, int size_pkt) | |||
366 | } | 366 | } |
367 | } | 367 | } |
368 | 368 | ||
369 | static void sendping4(int junk ATTRIBUTE_UNUSED) | 369 | static void sendping4(int junk UNUSED_PARAM) |
370 | { | 370 | { |
371 | /* +4 reserves a place for timestamp, which may end up sitting | 371 | /* +4 reserves a place for timestamp, which may end up sitting |
372 | * *after* packet. Saves one if() */ | 372 | * *after* packet. Saves one if() */ |
@@ -388,7 +388,7 @@ static void sendping4(int junk ATTRIBUTE_UNUSED) | |||
388 | sendping_tail(sendping4, pkt, datalen + ICMP_MINLEN); | 388 | sendping_tail(sendping4, pkt, datalen + ICMP_MINLEN); |
389 | } | 389 | } |
390 | #if ENABLE_PING6 | 390 | #if ENABLE_PING6 |
391 | static void sendping6(int junk ATTRIBUTE_UNUSED) | 391 | static void sendping6(int junk UNUSED_PARAM) |
392 | { | 392 | { |
393 | struct icmp6_hdr *pkt = alloca(datalen + sizeof(struct icmp6_hdr) + 4); | 393 | struct icmp6_hdr *pkt = alloca(datalen + sizeof(struct icmp6_hdr) + 4); |
394 | 394 | ||
@@ -714,7 +714,7 @@ static void ping(len_and_sockaddr *lsa) | |||
714 | } | 714 | } |
715 | 715 | ||
716 | int ping_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 716 | int ping_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
717 | int ping_main(int argc ATTRIBUTE_UNUSED, char **argv) | 717 | int ping_main(int argc UNUSED_PARAM, char **argv) |
718 | { | 718 | { |
719 | len_and_sockaddr *lsa; | 719 | len_and_sockaddr *lsa; |
720 | char *opt_c, *opt_s; | 720 | char *opt_c, *opt_s; |
diff --git a/networking/pscan.c b/networking/pscan.c index b332d7133..5fb6af0b3 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 ATTRIBUTE_UNUSED, char **argv) | 34 | int pscan_main(int argc UNUSED_PARAM, 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 0146fa029..f467ed3fd 100644 --- a/networking/route.c +++ b/networking/route.c | |||
@@ -641,7 +641,7 @@ static const char tbl_verb[] ALIGN1 = | |||
641 | ; | 641 | ; |
642 | 642 | ||
643 | int route_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 643 | int route_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
644 | int route_main(int argc ATTRIBUTE_UNUSED, char **argv) | 644 | int route_main(int argc UNUSED_PARAM, char **argv) |
645 | { | 645 | { |
646 | unsigned opt; | 646 | unsigned opt; |
647 | int what; | 647 | int what; |
diff --git a/networking/sendmail.c b/networking/sendmail.c index b58055d39..93617388b 100644 --- a/networking/sendmail.c +++ b/networking/sendmail.c | |||
@@ -275,7 +275,7 @@ static char *parse_url(char *url, char **user, char **pass) | |||
275 | } | 275 | } |
276 | 276 | ||
277 | int sendgetmail_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 277 | int sendgetmail_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
278 | int sendgetmail_main(int argc ATTRIBUTE_UNUSED, char **argv) | 278 | int sendgetmail_main(int argc UNUSED_PARAM, char **argv) |
279 | { | 279 | { |
280 | llist_t *opt_recipients = NULL; | 280 | llist_t *opt_recipients = NULL; |
281 | llist_t *opt_attachments = NULL; | 281 | llist_t *opt_attachments = NULL; |
diff --git a/networking/slattach.c b/networking/slattach.c index 02ecb5e9f..52f7f3cff 100644 --- a/networking/slattach.c +++ b/networking/slattach.c | |||
@@ -64,7 +64,7 @@ static int set_termios_state_or_warn(struct termios *state) | |||
64 | * Go on after errors: we want to restore as many controlled ttys | 64 | * Go on after errors: we want to restore as many controlled ttys |
65 | * as possible. | 65 | * as possible. |
66 | */ | 66 | */ |
67 | static void restore_state_and_exit(int exitcode) ATTRIBUTE_NORETURN; | 67 | static void restore_state_and_exit(int exitcode) NORETURN; |
68 | static void restore_state_and_exit(int exitcode) | 68 | static void restore_state_and_exit(int exitcode) |
69 | { | 69 | { |
70 | struct termios state; | 70 | struct termios state; |
@@ -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 ATTRIBUTE_UNUSED) | 117 | static void sig_handler(int signo UNUSED_PARAM) |
118 | { | 118 | { |
119 | restore_state_and_exit(EXIT_SUCCESS); | 119 | restore_state_and_exit(EXIT_SUCCESS); |
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 ATTRIBUTE_UNUSED, char **argv) | 123 | int slattach_main(int argc UNUSED_PARAM, 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/tcpudp.c b/networking/tcpudp.c index 561d1324c..29408c5be 100644 --- a/networking/tcpudp.c +++ b/networking/tcpudp.c | |||
@@ -144,7 +144,7 @@ static void connection_status(void) | |||
144 | bb_error_msg("status %u/%u", cnum, cmax); | 144 | bb_error_msg("status %u/%u", cnum, cmax); |
145 | } | 145 | } |
146 | 146 | ||
147 | static void sig_child_handler(int sig ATTRIBUTE_UNUSED) | 147 | static void sig_child_handler(int sig UNUSED_PARAM) |
148 | { | 148 | { |
149 | int wstat; | 149 | int wstat; |
150 | int pid; | 150 | int pid; |
@@ -162,7 +162,7 @@ static void sig_child_handler(int sig ATTRIBUTE_UNUSED) | |||
162 | } | 162 | } |
163 | 163 | ||
164 | int tcpudpsvd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 164 | int tcpudpsvd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
165 | int tcpudpsvd_main(int argc ATTRIBUTE_UNUSED, char **argv) | 165 | int tcpudpsvd_main(int argc UNUSED_PARAM, char **argv) |
166 | { | 166 | { |
167 | char *str_C, *str_t; | 167 | char *str_C, *str_t; |
168 | char *user; | 168 | char *user; |
diff --git a/networking/telnet.c b/networking/telnet.c index 3a06c167c..aaaa2648f 100644 --- a/networking/telnet.c +++ b/networking/telnet.c | |||
@@ -101,7 +101,7 @@ static void iacflush(void) | |||
101 | 101 | ||
102 | #define write_str(fd, str) write(fd, str, sizeof(str) - 1) | 102 | #define write_str(fd, str) write(fd, str, sizeof(str) - 1) |
103 | 103 | ||
104 | static void doexit(int ev) ATTRIBUTE_NORETURN; | 104 | static void doexit(int ev) NORETURN; |
105 | static void doexit(int ev) | 105 | static void doexit(int ev) |
106 | { | 106 | { |
107 | cookmode(); | 107 | cookmode(); |
diff --git a/networking/telnetd.c b/networking/telnetd.c index 3660d788f..22ecb3ca8 100644 --- a/networking/telnetd.c +++ b/networking/telnetd.c | |||
@@ -330,7 +330,7 @@ free_session(struct tsession *ts) | |||
330 | 330 | ||
331 | #endif | 331 | #endif |
332 | 332 | ||
333 | static void handle_sigchld(int sig ATTRIBUTE_UNUSED) | 333 | static void handle_sigchld(int sig UNUSED_PARAM) |
334 | { | 334 | { |
335 | pid_t pid; | 335 | pid_t pid; |
336 | struct tsession *ts; | 336 | struct tsession *ts; |
@@ -352,7 +352,7 @@ static void handle_sigchld(int sig ATTRIBUTE_UNUSED) | |||
352 | } | 352 | } |
353 | 353 | ||
354 | int telnetd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 354 | int telnetd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
355 | int telnetd_main(int argc ATTRIBUTE_UNUSED, char **argv) | 355 | int telnetd_main(int argc UNUSED_PARAM, char **argv) |
356 | { | 356 | { |
357 | fd_set rdfdset, wrfdset; | 357 | fd_set rdfdset, wrfdset; |
358 | unsigned opt; | 358 | unsigned opt; |
diff --git a/networking/tftp.c b/networking/tftp.c index c61cde9d5..d09a6eba5 100644 --- a/networking/tftp.c +++ b/networking/tftp.c | |||
@@ -555,7 +555,7 @@ static int tftp_protocol( | |||
555 | #if ENABLE_TFTP | 555 | #if ENABLE_TFTP |
556 | 556 | ||
557 | int tftp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 557 | int tftp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
558 | int tftp_main(int argc ATTRIBUTE_UNUSED, char **argv) | 558 | int tftp_main(int argc UNUSED_PARAM, char **argv) |
559 | { | 559 | { |
560 | len_and_sockaddr *peer_lsa; | 560 | len_and_sockaddr *peer_lsa; |
561 | const char *local_file = NULL; | 561 | const char *local_file = NULL; |
@@ -640,7 +640,7 @@ static len_and_sockaddr *get_sock_lsa(int s) | |||
640 | } | 640 | } |
641 | 641 | ||
642 | int tftpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 642 | int tftpd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
643 | int tftpd_main(int argc ATTRIBUTE_UNUSED, char **argv) | 643 | int tftpd_main(int argc UNUSED_PARAM, char **argv) |
644 | { | 644 | { |
645 | len_and_sockaddr *our_lsa; | 645 | len_and_sockaddr *our_lsa; |
646 | len_and_sockaddr *peer_lsa; | 646 | len_and_sockaddr *peer_lsa; |
diff --git a/networking/traceroute.c b/networking/traceroute.c index 6a5373469..f16fc792f 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
@@ -273,7 +273,7 @@ typedef struct outdata { | |||
273 | unsigned char seq; /* sequence number of this packet */ | 273 | unsigned char seq; /* sequence number of this packet */ |
274 | unsigned char ttl; /* ttl packet left with */ | 274 | unsigned char ttl; /* ttl packet left with */ |
275 | // UNUSED. Retaining to have the same packet size. | 275 | // UNUSED. Retaining to have the same packet size. |
276 | struct timeval tv_UNUSED ATTRIBUTE_PACKED; /* time packet left */ | 276 | struct timeval tv_UNUSED PACKED; /* time packet left */ |
277 | } outdata_t; | 277 | } outdata_t; |
278 | 278 | ||
279 | struct IFADDRLIST { | 279 | struct IFADDRLIST { |
diff --git a/networking/udhcp/arpping.c b/networking/udhcp/arpping.c index a8a458468..44815ad74 100644 --- a/networking/udhcp/arpping.c +++ b/networking/udhcp/arpping.c | |||
@@ -30,7 +30,7 @@ struct arpMsg { | |||
30 | uint8_t tHaddr[6]; /* 20 target's hardware address */ | 30 | uint8_t tHaddr[6]; /* 20 target's hardware address */ |
31 | uint8_t tInaddr[4]; /* 26 target's IP address */ | 31 | uint8_t tInaddr[4]; /* 26 target's IP address */ |
32 | uint8_t pad[18]; /* 2a pad for min. ethernet payload (60 bytes) */ | 32 | uint8_t pad[18]; /* 2a pad for min. ethernet payload (60 bytes) */ |
33 | } ATTRIBUTE_PACKED; | 33 | } PACKED; |
34 | 34 | ||
35 | enum { | 35 | enum { |
36 | ARP_MSG_SIZE = 0x2a | 36 | ARP_MSG_SIZE = 0x2a |
diff --git a/networking/udhcp/common.h b/networking/udhcp/common.h index bf0ecc7b1..0f3b79647 100644 --- a/networking/udhcp/common.h +++ b/networking/udhcp/common.h | |||
@@ -43,13 +43,13 @@ struct dhcpMessage { | |||
43 | uint8_t file[128]; | 43 | uint8_t file[128]; |
44 | uint32_t cookie; | 44 | uint32_t cookie; |
45 | uint8_t options[DHCP_OPTIONS_BUFSIZE + CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS]; | 45 | uint8_t options[DHCP_OPTIONS_BUFSIZE + CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS]; |
46 | } ATTRIBUTE_PACKED; | 46 | } PACKED; |
47 | 47 | ||
48 | struct udp_dhcp_packet { | 48 | struct udp_dhcp_packet { |
49 | struct iphdr ip; | 49 | struct iphdr ip; |
50 | struct udphdr udp; | 50 | struct udphdr udp; |
51 | struct dhcpMessage data; | 51 | struct dhcpMessage data; |
52 | } ATTRIBUTE_PACKED; | 52 | } PACKED; |
53 | 53 | ||
54 | /* Let's see whether compiler understood us right */ | 54 | /* Let's see whether compiler understood us right */ |
55 | struct BUG_bad_sizeof_struct_udp_dhcp_packet { | 55 | struct BUG_bad_sizeof_struct_udp_dhcp_packet { |
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index d2138dd45..5caa00c83 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -123,7 +123,7 @@ static uint8_t* alloc_dhcp_option(int code, const char *str, int extra) | |||
123 | 123 | ||
124 | 124 | ||
125 | int udhcpc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 125 | int udhcpc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
126 | int udhcpc_main(int argc ATTRIBUTE_UNUSED, char **argv) | 126 | int udhcpc_main(int argc UNUSED_PARAM, char **argv) |
127 | { | 127 | { |
128 | uint8_t *temp, *message; | 128 | uint8_t *temp, *message; |
129 | char *str_c, *str_V, *str_h, *str_F, *str_r; | 129 | char *str_c, *str_V, *str_h, *str_F, *str_r; |
diff --git a/networking/udhcp/dhcpd.c b/networking/udhcp/dhcpd.c index a6264ad2f..0cd6b9d50 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 ATTRIBUTE_UNUSED, char **argv) | 26 | int udhcpd_main(int argc UNUSED_PARAM, 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/dhcprelay.c b/networking/udhcp/dhcprelay.c index 08fb733d7..90ecf4831 100644 --- a/networking/udhcp/dhcprelay.c +++ b/networking/udhcp/dhcprelay.c | |||
@@ -236,7 +236,7 @@ static void pass_back(struct dhcpMessage *p, int packet_len, int *fds) | |||
236 | } | 236 | } |
237 | 237 | ||
238 | static void dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **clients, | 238 | static void dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **clients, |
239 | struct sockaddr_in *server_addr, uint32_t gw_ip) ATTRIBUTE_NORETURN; | 239 | struct sockaddr_in *server_addr, uint32_t gw_ip) NORETURN; |
240 | static void dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **clients, | 240 | static void dhcprelay_loop(int *fds, int num_sockets, int max_socket, char **clients, |
241 | struct sockaddr_in *server_addr, uint32_t gw_ip) | 241 | struct sockaddr_in *server_addr, uint32_t gw_ip) |
242 | { | 242 | { |
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c index c98005f13..3e193903d 100644 --- a/networking/udhcp/dumpleases.c +++ b/networking/udhcp/dumpleases.c | |||
@@ -7,7 +7,7 @@ | |||
7 | #include "dhcpd.h" | 7 | #include "dhcpd.h" |
8 | 8 | ||
9 | int dumpleases_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 9 | int dumpleases_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
10 | int dumpleases_main(int argc ATTRIBUTE_UNUSED, char **argv) | 10 | int dumpleases_main(int argc UNUSED_PARAM, char **argv) |
11 | { | 11 | { |
12 | int fd; | 12 | int fd; |
13 | int i; | 13 | int i; |
diff --git a/networking/udhcp/files.c b/networking/udhcp/files.c index 58498f9ef..eaa50b807 100644 --- a/networking/udhcp/files.c +++ b/networking/udhcp/files.c | |||
@@ -155,7 +155,7 @@ static int read_opt(const char *const_line, void *arg) | |||
155 | char *line; | 155 | char *line; |
156 | const struct dhcp_option *option; | 156 | const struct dhcp_option *option; |
157 | int retval, length, idx; | 157 | int retval, length, idx; |
158 | char buffer[8] __attribute__((aligned(4))); | 158 | char buffer[8] ALIGNED(4); |
159 | uint16_t *result_u16 = (uint16_t *) buffer; | 159 | uint16_t *result_u16 = (uint16_t *) buffer; |
160 | uint32_t *result_u32 = (uint32_t *) buffer; | 160 | uint32_t *result_u32 = (uint32_t *) buffer; |
161 | 161 | ||
diff --git a/networking/wget.c b/networking/wget.c index 8606b9b38..d782cc4fe 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -188,7 +188,7 @@ static void progressmeter(int flag) | |||
188 | */ | 188 | */ |
189 | #else /* FEATURE_WGET_STATUSBAR */ | 189 | #else /* FEATURE_WGET_STATUSBAR */ |
190 | 190 | ||
191 | static ALWAYS_INLINE void progressmeter(int flag ATTRIBUTE_UNUSED) { } | 191 | static ALWAYS_INLINE void progressmeter(int flag UNUSED_PARAM) { } |
192 | 192 | ||
193 | #endif | 193 | #endif |
194 | 194 | ||
@@ -386,7 +386,7 @@ static char *gethdr(char *buf, size_t bufsiz, FILE *fp /*, int *istrunc*/) | |||
386 | 386 | ||
387 | 387 | ||
388 | int wget_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 388 | int wget_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
389 | int wget_main(int argc ATTRIBUTE_UNUSED, char **argv) | 389 | int wget_main(int argc UNUSED_PARAM, char **argv) |
390 | { | 390 | { |
391 | char buf[512]; | 391 | char buf[512]; |
392 | struct host_info server, target; | 392 | struct host_info server, target; |
diff --git a/networking/zcip.c b/networking/zcip.c index fccb1a466..221edd322 100644 --- a/networking/zcip.c +++ b/networking/zcip.c | |||
@@ -39,7 +39,7 @@ | |||
39 | struct arp_packet { | 39 | struct arp_packet { |
40 | struct ether_header eth; | 40 | struct ether_header eth; |
41 | struct ether_arp arp; | 41 | struct ether_arp arp; |
42 | } ATTRIBUTE_PACKED; | 42 | } PACKED; |
43 | 43 | ||
44 | enum { | 44 | enum { |
45 | /* 169.254.0.0 */ | 45 | /* 169.254.0.0 */ |