diff options
Diffstat (limited to 'networking/inetd.c')
-rw-r--r-- | networking/inetd.c | 22 |
1 files changed, 11 insertions, 11 deletions
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 | ||