diff options
Diffstat (limited to 'coreutils')
47 files changed, 52 insertions, 52 deletions
diff --git a/coreutils/cat.c b/coreutils/cat.c index 989147b39..0024eb8d5 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c | |||
@@ -40,7 +40,7 @@ int bb_cat(char **argv) | |||
40 | } | 40 | } |
41 | 41 | ||
42 | int cat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 42 | int cat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
43 | int cat_main(int argc ATTRIBUTE_UNUSED, char **argv) | 43 | int cat_main(int argc UNUSED_PARAM, char **argv) |
44 | { | 44 | { |
45 | getopt32(argv, "u"); | 45 | getopt32(argv, "u"); |
46 | argv += optind; | 46 | argv += optind; |
diff --git a/coreutils/catv.c b/coreutils/catv.c index b87740ec9..ff3139c80 100644 --- a/coreutils/catv.c +++ b/coreutils/catv.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include "libbb.h" | 13 | #include "libbb.h" |
14 | 14 | ||
15 | int catv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 15 | int catv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
16 | int catv_main(int argc ATTRIBUTE_UNUSED, char **argv) | 16 | int catv_main(int argc UNUSED_PARAM, char **argv) |
17 | { | 17 | { |
18 | int retval = EXIT_SUCCESS; | 18 | int retval = EXIT_SUCCESS; |
19 | int fd; | 19 | int fd; |
diff --git a/coreutils/chmod.c b/coreutils/chmod.c index 994308c89..40f681fb6 100644 --- a/coreutils/chmod.c +++ b/coreutils/chmod.c | |||
@@ -68,7 +68,7 @@ static int FAST_FUNC fileAction(const char *fileName, struct stat *statbuf, void | |||
68 | } | 68 | } |
69 | 69 | ||
70 | int chmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 70 | int chmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
71 | int chmod_main(int argc ATTRIBUTE_UNUSED, char **argv) | 71 | int chmod_main(int argc UNUSED_PARAM, char **argv) |
72 | { | 72 | { |
73 | int retval = EXIT_SUCCESS; | 73 | int retval = EXIT_SUCCESS; |
74 | char *arg, **argp; | 74 | char *arg, **argp; |
diff --git a/coreutils/chown.c b/coreutils/chown.c index c14c62db6..b3d974ae4 100644 --- a/coreutils/chown.c +++ b/coreutils/chown.c | |||
@@ -42,7 +42,7 @@ typedef int (*chown_fptr)(const char *, uid_t, gid_t); | |||
42 | static struct bb_uidgid_t ugid = { -1, -1 }; | 42 | static struct bb_uidgid_t ugid = { -1, -1 }; |
43 | 43 | ||
44 | static int FAST_FUNC fileAction(const char *fileName, struct stat *statbuf, | 44 | static int FAST_FUNC fileAction(const char *fileName, struct stat *statbuf, |
45 | void *cf, int depth ATTRIBUTE_UNUSED) | 45 | void *cf, int depth UNUSED_PARAM) |
46 | { | 46 | { |
47 | uid_t u = (ugid.uid == (uid_t)-1) ? statbuf->st_uid : ugid.uid; | 47 | uid_t u = (ugid.uid == (uid_t)-1) ? statbuf->st_uid : ugid.uid; |
48 | gid_t g = (ugid.gid == (gid_t)-1) ? statbuf->st_gid : ugid.gid; | 48 | gid_t g = (ugid.gid == (gid_t)-1) ? statbuf->st_gid : ugid.gid; |
@@ -61,7 +61,7 @@ static int FAST_FUNC fileAction(const char *fileName, struct stat *statbuf, | |||
61 | return FALSE; | 61 | return FALSE; |
62 | } | 62 | } |
63 | 63 | ||
64 | int chown_main(int argc ATTRIBUTE_UNUSED, char **argv) | 64 | int chown_main(int argc UNUSED_PARAM, char **argv) |
65 | { | 65 | { |
66 | int retval = EXIT_SUCCESS; | 66 | int retval = EXIT_SUCCESS; |
67 | int flags; | 67 | int flags; |
diff --git a/coreutils/cksum.c b/coreutils/cksum.c index 074d06811..598718486 100644 --- a/coreutils/cksum.c +++ b/coreutils/cksum.c | |||
@@ -9,7 +9,7 @@ | |||
9 | #include "libbb.h" | 9 | #include "libbb.h" |
10 | 10 | ||
11 | int cksum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 11 | int cksum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
12 | int cksum_main(int argc ATTRIBUTE_UNUSED, char **argv) | 12 | int cksum_main(int argc UNUSED_PARAM, char **argv) |
13 | { | 13 | { |
14 | uint32_t *crc32_table = crc32_filltable(NULL, 1); | 14 | uint32_t *crc32_table = crc32_filltable(NULL, 1); |
15 | uint32_t crc; | 15 | uint32_t crc; |
diff --git a/coreutils/comm.c b/coreutils/comm.c index 4dbc0d477..b62c98772 100644 --- a/coreutils/comm.c +++ b/coreutils/comm.c | |||
@@ -36,7 +36,7 @@ static void writeline(char *line, int class, int flags) | |||
36 | } | 36 | } |
37 | 37 | ||
38 | int comm_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 38 | int comm_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
39 | int comm_main(int argc ATTRIBUTE_UNUSED, char **argv) | 39 | int comm_main(int argc UNUSED_PARAM, char **argv) |
40 | { | 40 | { |
41 | #define LINE_LEN 100 | 41 | #define LINE_LEN 100 |
42 | #define BB_EOF_0 0x1 | 42 | #define BB_EOF_0 0x1 |
diff --git a/coreutils/cut.c b/coreutils/cut.c index 1634fc8c8..179854988 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c | |||
@@ -162,7 +162,7 @@ static void cut_file(FILE *file, char delim) | |||
162 | } | 162 | } |
163 | 163 | ||
164 | int cut_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 164 | int cut_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
165 | int cut_main(int argc ATTRIBUTE_UNUSED, char **argv) | 165 | int cut_main(int argc UNUSED_PARAM, char **argv) |
166 | { | 166 | { |
167 | char delim = '\t'; /* delimiter, default is tab */ | 167 | char delim = '\t'; /* delimiter, default is tab */ |
168 | char *sopt, *ltok; | 168 | char *sopt, *ltok; |
diff --git a/coreutils/date.c b/coreutils/date.c index 5b0f60f1a..8469190cf 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -39,7 +39,7 @@ static void maybe_set_utc(int opt) | |||
39 | } | 39 | } |
40 | 40 | ||
41 | int date_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 41 | int date_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
42 | int date_main(int argc ATTRIBUTE_UNUSED, char **argv) | 42 | int date_main(int argc UNUSED_PARAM, char **argv) |
43 | { | 43 | { |
44 | struct tm tm_time; | 44 | struct tm tm_time; |
45 | time_t tm; | 45 | time_t tm; |
diff --git a/coreutils/dd.c b/coreutils/dd.c index 6b66366b6..8a40aa77f 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c | |||
@@ -41,7 +41,7 @@ struct globals { | |||
41 | #define INIT_G() memset(&G, 0, sizeof(G)) | 41 | #define INIT_G() memset(&G, 0, sizeof(G)) |
42 | 42 | ||
43 | 43 | ||
44 | static void dd_output_status(int ATTRIBUTE_UNUSED cur_signal) | 44 | static void dd_output_status(int UNUSED_PARAM cur_signal) |
45 | { | 45 | { |
46 | /* Deliberately using %u, not %d */ | 46 | /* Deliberately using %u, not %d */ |
47 | fprintf(stderr, "%"OFF_FMT"u+%"OFF_FMT"u records in\n" | 47 | fprintf(stderr, "%"OFF_FMT"u+%"OFF_FMT"u records in\n" |
@@ -79,7 +79,7 @@ static bool write_and_stats(const void *buf, size_t len, size_t obs, | |||
79 | #endif | 79 | #endif |
80 | 80 | ||
81 | int dd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 81 | int dd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
82 | int dd_main(int argc ATTRIBUTE_UNUSED, char **argv) | 82 | int dd_main(int argc UNUSED_PARAM, char **argv) |
83 | { | 83 | { |
84 | enum { | 84 | enum { |
85 | /* Must be in the same order as OP_conv_XXX! */ | 85 | /* Must be in the same order as OP_conv_XXX! */ |
diff --git a/coreutils/du.c b/coreutils/du.c index b469824ea..efc9bb9fa 100644 --- a/coreutils/du.c +++ b/coreutils/du.c | |||
@@ -141,7 +141,7 @@ static unsigned long du(const char *filename) | |||
141 | } | 141 | } |
142 | 142 | ||
143 | int du_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 143 | int du_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
144 | int du_main(int argc ATTRIBUTE_UNUSED, char **argv) | 144 | int du_main(int argc UNUSED_PARAM, char **argv) |
145 | { | 145 | { |
146 | unsigned long total; | 146 | unsigned long total; |
147 | int slink_depth_save; | 147 | int slink_depth_save; |
diff --git a/coreutils/echo.c b/coreutils/echo.c index cc9b9e6f4..36cb6b3af 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -29,7 +29,7 @@ | |||
29 | 29 | ||
30 | /* NB: can be used by shell even if not enabled as applet */ | 30 | /* NB: can be used by shell even if not enabled as applet */ |
31 | 31 | ||
32 | int echo_main(int argc ATTRIBUTE_UNUSED, char **argv) | 32 | int echo_main(int argc UNUSED_PARAM, char **argv) |
33 | { | 33 | { |
34 | const char *arg; | 34 | const char *arg; |
35 | #if !ENABLE_FEATURE_FANCY_ECHO | 35 | #if !ENABLE_FEATURE_FANCY_ECHO |
diff --git a/coreutils/env.c b/coreutils/env.c index 8d8753e8b..66199e8d6 100644 --- a/coreutils/env.c +++ b/coreutils/env.c | |||
@@ -39,7 +39,7 @@ static const char env_longopts[] ALIGN1 = | |||
39 | #endif | 39 | #endif |
40 | 40 | ||
41 | int env_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 41 | int env_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
42 | int env_main(int argc ATTRIBUTE_UNUSED, char **argv) | 42 | int env_main(int argc UNUSED_PARAM, char **argv) |
43 | { | 43 | { |
44 | /* cleanenv was static - why? */ | 44 | /* cleanenv was static - why? */ |
45 | char *cleanenv[1]; | 45 | char *cleanenv[1]; |
diff --git a/coreutils/expand.c b/coreutils/expand.c index af2ef8675..ee51c032f 100644 --- a/coreutils/expand.c +++ b/coreutils/expand.c | |||
@@ -126,7 +126,7 @@ static void unexpand(FILE *file, unsigned int tab_size, unsigned opt) | |||
126 | #endif | 126 | #endif |
127 | 127 | ||
128 | int expand_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 128 | int expand_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
129 | int expand_main(int argc ATTRIBUTE_UNUSED, char **argv) | 129 | int expand_main(int argc UNUSED_PARAM, char **argv) |
130 | { | 130 | { |
131 | /* Default 8 spaces for 1 tab */ | 131 | /* Default 8 spaces for 1 tab */ |
132 | const char *opt_t = "8"; | 132 | const char *opt_t = "8"; |
diff --git a/coreutils/false.c b/coreutils/false.c index e3121363c..f448ebf72 100644 --- a/coreutils/false.c +++ b/coreutils/false.c | |||
@@ -15,7 +15,7 @@ | |||
15 | /* This is a NOFORK applet. Be very careful! */ | 15 | /* This is a NOFORK applet. Be very careful! */ |
16 | 16 | ||
17 | int false_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 17 | int false_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
18 | int false_main(int ATTRIBUTE_UNUSED argc, char ATTRIBUTE_UNUSED **argv) | 18 | int false_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
19 | { | 19 | { |
20 | return EXIT_FAILURE; | 20 | return EXIT_FAILURE; |
21 | } | 21 | } |
diff --git a/coreutils/hostid.c b/coreutils/hostid.c index 433eccc45..2794510a7 100644 --- a/coreutils/hostid.c +++ b/coreutils/hostid.c | |||
@@ -14,7 +14,7 @@ | |||
14 | /* This is a NOFORK applet. Be very careful! */ | 14 | /* This is a NOFORK applet. Be very careful! */ |
15 | 15 | ||
16 | int hostid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 16 | int hostid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 | int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv) | 17 | int hostid_main(int argc, char **argv UNUSED_PARAM) |
18 | { | 18 | { |
19 | if (argc > 1) { | 19 | if (argc > 1) { |
20 | bb_show_usage(); | 20 | bb_show_usage(); |
diff --git a/coreutils/id.c b/coreutils/id.c index 9afb10088..0fadd98d3 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -37,7 +37,7 @@ static int printf_full(unsigned int id, const char *arg, const char prefix) | |||
37 | } | 37 | } |
38 | 38 | ||
39 | int id_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 39 | int id_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
40 | int id_main(int argc ATTRIBUTE_UNUSED, char **argv) | 40 | int id_main(int argc UNUSED_PARAM, char **argv) |
41 | { | 41 | { |
42 | struct passwd *p; | 42 | struct passwd *p; |
43 | uid_t uid; | 43 | uid_t uid; |
diff --git a/coreutils/logname.c b/coreutils/logname.c index 09fd3960d..3400c30d9 100644 --- a/coreutils/logname.c +++ b/coreutils/logname.c | |||
@@ -25,7 +25,7 @@ | |||
25 | /* This is a NOFORK applet. Be very careful! */ | 25 | /* This is a NOFORK applet. Be very careful! */ |
26 | 26 | ||
27 | int logname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 27 | int logname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
28 | int logname_main(int argc, char ATTRIBUTE_UNUSED **argv) | 28 | int logname_main(int argc, char **argv UNUSED_PARAM) |
29 | { | 29 | { |
30 | char buf[128]; | 30 | char buf[128]; |
31 | 31 | ||
diff --git a/coreutils/ls.c b/coreutils/ls.c index 7fddefef5..a76ced1b9 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -825,7 +825,7 @@ static const char ls_color_opt[] ALIGN1 = | |||
825 | 825 | ||
826 | 826 | ||
827 | int ls_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 827 | int ls_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
828 | int ls_main(int argc ATTRIBUTE_UNUSED, char **argv) | 828 | int ls_main(int argc UNUSED_PARAM, char **argv) |
829 | { | 829 | { |
830 | struct dnode **dnd; | 830 | struct dnode **dnd; |
831 | struct dnode **dnf; | 831 | struct dnode **dnf; |
diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index 8690f4017..a5681589b 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c | |||
@@ -75,7 +75,7 @@ static uint8_t *hash_file(const char *filename, hash_algo_t hash_algo) | |||
75 | } | 75 | } |
76 | 76 | ||
77 | int md5_sha1_sum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 77 | int md5_sha1_sum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
78 | int md5_sha1_sum_main(int argc ATTRIBUTE_UNUSED, char **argv) | 78 | int md5_sha1_sum_main(int argc UNUSED_PARAM, char **argv) |
79 | { | 79 | { |
80 | int return_value = EXIT_SUCCESS; | 80 | int return_value = EXIT_SUCCESS; |
81 | uint8_t *hash_value; | 81 | uint8_t *hash_value; |
diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c index d9261b96a..65494609c 100644 --- a/coreutils/mkfifo.c +++ b/coreutils/mkfifo.c | |||
@@ -14,7 +14,7 @@ | |||
14 | #include "libcoreutils/coreutils.h" | 14 | #include "libcoreutils/coreutils.h" |
15 | 15 | ||
16 | int mkfifo_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 16 | int mkfifo_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 | int mkfifo_main(int argc ATTRIBUTE_UNUSED, char **argv) | 17 | int mkfifo_main(int argc UNUSED_PARAM, char **argv) |
18 | { | 18 | { |
19 | mode_t mode; | 19 | mode_t mode; |
20 | int retval = EXIT_SUCCESS; | 20 | int retval = EXIT_SUCCESS; |
diff --git a/coreutils/od_bloaty.c b/coreutils/od_bloaty.c index ce963db8a..a2eaf11d9 100644 --- a/coreutils/od_bloaty.c +++ b/coreutils/od_bloaty.c | |||
@@ -364,7 +364,7 @@ print_long_double(size_t n_bytes, const char *block, const char *fmt_string) | |||
364 | 364 | ||
365 | static void | 365 | static void |
366 | print_named_ascii(size_t n_bytes, const char *block, | 366 | print_named_ascii(size_t n_bytes, const char *block, |
367 | const char *unused_fmt_string ATTRIBUTE_UNUSED) | 367 | const char *unused_fmt_string UNUSED_PARAM) |
368 | { | 368 | { |
369 | /* Names for some non-printing characters. */ | 369 | /* Names for some non-printing characters. */ |
370 | static const char charname[33][3] ALIGN1 = { | 370 | static const char charname[33][3] ALIGN1 = { |
@@ -404,7 +404,7 @@ print_named_ascii(size_t n_bytes, const char *block, | |||
404 | 404 | ||
405 | static void | 405 | static void |
406 | print_ascii(size_t n_bytes, const char *block, | 406 | print_ascii(size_t n_bytes, const char *block, |
407 | const char *unused_fmt_string ATTRIBUTE_UNUSED) | 407 | const char *unused_fmt_string UNUSED_PARAM) |
408 | { | 408 | { |
409 | // buf[N] pos: 01234 56789 | 409 | // buf[N] pos: 01234 56789 |
410 | char buf[12] = " x\0 0xx\0"; | 410 | char buf[12] = " x\0 0xx\0"; |
@@ -814,7 +814,7 @@ skip(off_t n_skip) | |||
814 | typedef void FN_format_address(off_t address, char c); | 814 | typedef void FN_format_address(off_t address, char c); |
815 | 815 | ||
816 | static void | 816 | static void |
817 | format_address_none(off_t address ATTRIBUTE_UNUSED, char c ATTRIBUTE_UNUSED) | 817 | format_address_none(off_t address UNUSED_PARAM, char c UNUSED_PARAM) |
818 | { | 818 | { |
819 | } | 819 | } |
820 | 820 | ||
diff --git a/coreutils/printenv.c b/coreutils/printenv.c index 2fc01f22f..6971f7258 100644 --- a/coreutils/printenv.c +++ b/coreutils/printenv.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include "libbb.h" | 11 | #include "libbb.h" |
12 | 12 | ||
13 | int printenv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 13 | int printenv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
14 | int printenv_main(int argc ATTRIBUTE_UNUSED, char **argv) | 14 | int printenv_main(int argc UNUSED_PARAM, char **argv) |
15 | { | 15 | { |
16 | /* no variables specified, show whole env */ | 16 | /* no variables specified, show whole env */ |
17 | if (!argv[1]) { | 17 | if (!argv[1]) { |
diff --git a/coreutils/printf.c b/coreutils/printf.c index b7752369c..a14306f5a 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
@@ -279,7 +279,7 @@ static char **print_formatted(char *f, char **argv) | |||
279 | return argv; | 279 | return argv; |
280 | } | 280 | } |
281 | 281 | ||
282 | int printf_main(int argc ATTRIBUTE_UNUSED, char **argv) | 282 | int printf_main(int argc UNUSED_PARAM, char **argv) |
283 | { | 283 | { |
284 | char *format; | 284 | char *format; |
285 | char **argv2; | 285 | char **argv2; |
diff --git a/coreutils/pwd.c b/coreutils/pwd.c index 9279dbee6..57953d246 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c | |||
@@ -12,7 +12,7 @@ | |||
12 | /* This is a NOFORK applet. Be very careful! */ | 12 | /* This is a NOFORK applet. Be very careful! */ |
13 | 13 | ||
14 | int pwd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 14 | int pwd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
15 | int pwd_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) | 15 | int pwd_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
16 | { | 16 | { |
17 | char *buf; | 17 | char *buf; |
18 | 18 | ||
diff --git a/coreutils/readlink.c b/coreutils/readlink.c index 0c45e1234..721fd8597 100644 --- a/coreutils/readlink.c +++ b/coreutils/readlink.c | |||
@@ -10,7 +10,7 @@ | |||
10 | #include "libbb.h" | 10 | #include "libbb.h" |
11 | 11 | ||
12 | int readlink_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 12 | int readlink_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
13 | int readlink_main(int argc ATTRIBUTE_UNUSED, char **argv) | 13 | int readlink_main(int argc UNUSED_PARAM, char **argv) |
14 | { | 14 | { |
15 | char *buf; | 15 | char *buf; |
16 | char *fname; | 16 | char *fname; |
diff --git a/coreutils/realpath.c b/coreutils/realpath.c index 6766524a7..28906ba55 100644 --- a/coreutils/realpath.c +++ b/coreutils/realpath.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include "libbb.h" | 13 | #include "libbb.h" |
14 | 14 | ||
15 | int realpath_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 15 | int realpath_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
16 | int realpath_main(int argc ATTRIBUTE_UNUSED, char **argv) | 16 | int realpath_main(int argc UNUSED_PARAM, char **argv) |
17 | { | 17 | { |
18 | int retval = EXIT_SUCCESS; | 18 | int retval = EXIT_SUCCESS; |
19 | 19 | ||
diff --git a/coreutils/rm.c b/coreutils/rm.c index 1774ce296..975f2267b 100644 --- a/coreutils/rm.c +++ b/coreutils/rm.c | |||
@@ -20,7 +20,7 @@ | |||
20 | /* This is a NOFORK applet. Be very careful! */ | 20 | /* This is a NOFORK applet. Be very careful! */ |
21 | 21 | ||
22 | int rm_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 22 | int rm_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
23 | int rm_main(int argc ATTRIBUTE_UNUSED, char **argv) | 23 | int rm_main(int argc UNUSED_PARAM, char **argv) |
24 | { | 24 | { |
25 | int status = 0; | 25 | int status = 0; |
26 | int flags = 0; | 26 | int flags = 0; |
diff --git a/coreutils/rmdir.c b/coreutils/rmdir.c index cb6046617..2450a43a3 100644 --- a/coreutils/rmdir.c +++ b/coreutils/rmdir.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #define IGNORE_NON_EMPTY 0x02 | 19 | #define IGNORE_NON_EMPTY 0x02 |
20 | 20 | ||
21 | int rmdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 21 | int rmdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
22 | int rmdir_main(int argc ATTRIBUTE_UNUSED, char **argv) | 22 | int rmdir_main(int argc UNUSED_PARAM, char **argv) |
23 | { | 23 | { |
24 | int status = EXIT_SUCCESS; | 24 | int status = EXIT_SUCCESS; |
25 | int flags; | 25 | int flags; |
diff --git a/coreutils/sleep.c b/coreutils/sleep.c index 78f9a8ebf..162d82006 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c | |||
@@ -34,7 +34,7 @@ static const struct suffix_mult sfx[] = { | |||
34 | #endif | 34 | #endif |
35 | 35 | ||
36 | int sleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 36 | int sleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
37 | int sleep_main(int argc ATTRIBUTE_UNUSED, char **argv) | 37 | int sleep_main(int argc UNUSED_PARAM, char **argv) |
38 | { | 38 | { |
39 | unsigned duration; | 39 | unsigned duration; |
40 | 40 | ||
diff --git a/coreutils/sort.c b/coreutils/sort.c index 1f531fb76..1fa552725 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c | |||
@@ -276,7 +276,7 @@ static unsigned str2u(char **str) | |||
276 | #endif | 276 | #endif |
277 | 277 | ||
278 | int sort_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 278 | int sort_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
279 | int sort_main(int argc ATTRIBUTE_UNUSED, char **argv) | 279 | int sort_main(int argc UNUSED_PARAM, char **argv) |
280 | { | 280 | { |
281 | FILE *fp, *outfile = stdout; | 281 | FILE *fp, *outfile = stdout; |
282 | char *line, **lines = NULL; | 282 | char *line, **lines = NULL; |
diff --git a/coreutils/split.c b/coreutils/split.c index 39f62e6dd..77cb66d53 100644 --- a/coreutils/split.c +++ b/coreutils/split.c | |||
@@ -56,7 +56,7 @@ enum { READ_BUFFER_SIZE = COMMON_BUFSIZE - 1 }; | |||
56 | #define SPLIT_OPT_a (1<<2) | 56 | #define SPLIT_OPT_a (1<<2) |
57 | 57 | ||
58 | int split_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 58 | int split_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
59 | int split_main(int argc ATTRIBUTE_UNUSED, char **argv) | 59 | int split_main(int argc UNUSED_PARAM, char **argv) |
60 | { | 60 | { |
61 | unsigned suffix_len = 2; | 61 | unsigned suffix_len = 2; |
62 | char *pfx; | 62 | char *pfx; |
diff --git a/coreutils/stty.c b/coreutils/stty.c index c9f11a8da..3605e3c29 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -692,7 +692,7 @@ static void set_speed_or_die(enum speed_setting type, const char *const arg, | |||
692 | } | 692 | } |
693 | } | 693 | } |
694 | 694 | ||
695 | static ATTRIBUTE_NORETURN void perror_on_device_and_die(const char *fmt) | 695 | static NORETURN void perror_on_device_and_die(const char *fmt) |
696 | { | 696 | { |
697 | bb_perror_msg_and_die(fmt, G.device_name); | 697 | bb_perror_msg_and_die(fmt, G.device_name); |
698 | } | 698 | } |
@@ -851,7 +851,7 @@ static int recover_mode(const char *arg, struct termios *mode) | |||
851 | } | 851 | } |
852 | 852 | ||
853 | static void display_recoverable(const struct termios *mode, | 853 | static void display_recoverable(const struct termios *mode, |
854 | int ATTRIBUTE_UNUSED dummy) | 854 | int UNUSED_PARAM dummy) |
855 | { | 855 | { |
856 | int i; | 856 | int i; |
857 | printf("%lx:%lx:%lx:%lx", | 857 | printf("%lx:%lx:%lx:%lx", |
diff --git a/coreutils/sum.c b/coreutils/sum.c index e6cfbfd80..60f3b3007 100644 --- a/coreutils/sum.c +++ b/coreutils/sum.c | |||
@@ -71,7 +71,7 @@ static unsigned sum_file(const char *file, unsigned type) | |||
71 | } | 71 | } |
72 | 72 | ||
73 | int sum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 73 | int sum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
74 | int sum_main(int argc ATTRIBUTE_UNUSED, char **argv) | 74 | int sum_main(int argc UNUSED_PARAM, char **argv) |
75 | { | 75 | { |
76 | unsigned n; | 76 | unsigned n; |
77 | unsigned type = SUM_BSD; | 77 | unsigned type = SUM_BSD; |
diff --git a/coreutils/sync.c b/coreutils/sync.c index 5c9d0926f..f00a3d075 100644 --- a/coreutils/sync.c +++ b/coreutils/sync.c | |||
@@ -14,7 +14,7 @@ | |||
14 | /* This is a NOFORK applet. Be very careful! */ | 14 | /* This is a NOFORK applet. Be very careful! */ |
15 | 15 | ||
16 | int sync_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 16 | int sync_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 | int sync_main(int argc, char **argv ATTRIBUTE_UNUSED) | 17 | int sync_main(int argc, char **argv UNUSED_PARAM) |
18 | { | 18 | { |
19 | /* coreutils-6.9 compat */ | 19 | /* coreutils-6.9 compat */ |
20 | bb_warn_ignoring_args(argc - 1); | 20 | bb_warn_ignoring_args(argc - 1); |
diff --git a/coreutils/tac.c b/coreutils/tac.c index af70f3092..d70e23ad4 100644 --- a/coreutils/tac.c +++ b/coreutils/tac.c | |||
@@ -26,7 +26,7 @@ struct lstring { | |||
26 | }; | 26 | }; |
27 | 27 | ||
28 | int tac_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 28 | int tac_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
29 | int tac_main(int argc ATTRIBUTE_UNUSED, char **argv) | 29 | int tac_main(int argc UNUSED_PARAM, char **argv) |
30 | { | 30 | { |
31 | char **name; | 31 | char **name; |
32 | FILE *f; | 32 | FILE *f; |
diff --git a/coreutils/test.c b/coreutils/test.c index 270ca21a9..c7c530052 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
@@ -187,7 +187,7 @@ extern struct test_statics *const test_ptr_to_statics; | |||
187 | 187 | ||
188 | static arith_t primary(enum token n); | 188 | static arith_t primary(enum token n); |
189 | 189 | ||
190 | static void syntax(const char *op, const char *msg) ATTRIBUTE_NORETURN; | 190 | static void syntax(const char *op, const char *msg) NORETURN; |
191 | static void syntax(const char *op, const char *msg) | 191 | static void syntax(const char *op, const char *msg) |
192 | { | 192 | { |
193 | if (op && *op) { | 193 | if (op && *op) { |
diff --git a/coreutils/touch.c b/coreutils/touch.c index 78ae4a5c3..92f20235c 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c | |||
@@ -38,7 +38,7 @@ | |||
38 | */ | 38 | */ |
39 | 39 | ||
40 | int touch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 40 | int touch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
41 | int touch_main(int argc ATTRIBUTE_UNUSED, char **argv) | 41 | int touch_main(int argc UNUSED_PARAM, char **argv) |
42 | { | 42 | { |
43 | #if ENABLE_DESKTOP | 43 | #if ENABLE_DESKTOP |
44 | struct utimbuf timebuf; | 44 | struct utimbuf timebuf; |
diff --git a/coreutils/tr.c b/coreutils/tr.c index 8b2d30802..e439fcb5b 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -174,7 +174,7 @@ static int complement(char *buffer, int buffer_len) | |||
174 | } | 174 | } |
175 | 175 | ||
176 | int tr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 176 | int tr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
177 | int tr_main(int argc ATTRIBUTE_UNUSED, char **argv) | 177 | int tr_main(int argc UNUSED_PARAM, char **argv) |
178 | { | 178 | { |
179 | int output_length = 0, input_length; | 179 | int output_length = 0, input_length; |
180 | int i; | 180 | int i; |
diff --git a/coreutils/true.c b/coreutils/true.c index 565e68b83..8a7e6ae9e 100644 --- a/coreutils/true.c +++ b/coreutils/true.c | |||
@@ -15,7 +15,7 @@ | |||
15 | /* This is a NOFORK applet. Be very careful! */ | 15 | /* This is a NOFORK applet. Be very careful! */ |
16 | 16 | ||
17 | int true_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 17 | int true_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
18 | int true_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) | 18 | int true_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
19 | { | 19 | { |
20 | return EXIT_SUCCESS; | 20 | return EXIT_SUCCESS; |
21 | } | 21 | } |
diff --git a/coreutils/tty.c b/coreutils/tty.c index 48e15117c..e83289440 100644 --- a/coreutils/tty.c +++ b/coreutils/tty.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include "libbb.h" | 13 | #include "libbb.h" |
14 | 14 | ||
15 | int tty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 15 | int tty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
16 | int tty_main(int argc, char **argv SKIP_INCLUDE_SUSv2(ATTRIBUTE_UNUSED)) | 16 | int tty_main(int argc, char **argv SKIP_INCLUDE_SUSv2(UNUSED_PARAM)) |
17 | { | 17 | { |
18 | const char *s; | 18 | const char *s; |
19 | USE_INCLUDE_SUSv2(int silent;) /* Note: No longer relevant in SUSv3. */ | 19 | USE_INCLUDE_SUSv2(int silent;) /* Note: No longer relevant in SUSv3. */ |
diff --git a/coreutils/uname.c b/coreutils/uname.c index 76fd3ca8d..e28285c44 100644 --- a/coreutils/uname.c +++ b/coreutils/uname.c | |||
@@ -49,7 +49,7 @@ static const unsigned short utsname_offset[] = { | |||
49 | }; | 49 | }; |
50 | 50 | ||
51 | int uname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 51 | int uname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
52 | int uname_main(int argc ATTRIBUTE_UNUSED, char **argv) | 52 | int uname_main(int argc UNUSED_PARAM, char **argv) |
53 | { | 53 | { |
54 | uname_info_t uname_info; | 54 | uname_info_t uname_info; |
55 | #if defined(__sparc__) && defined(__linux__) | 55 | #if defined(__sparc__) && defined(__linux__) |
diff --git a/coreutils/uniq.c b/coreutils/uniq.c index 41f1fed7b..091862118 100644 --- a/coreutils/uniq.c +++ b/coreutils/uniq.c | |||
@@ -26,7 +26,7 @@ static FILE *xgetoptfile_uniq_s(char **argv, int read0write2) | |||
26 | } | 26 | } |
27 | 27 | ||
28 | int uniq_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 28 | int uniq_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
29 | int uniq_main(int argc ATTRIBUTE_UNUSED, char **argv) | 29 | int uniq_main(int argc UNUSED_PARAM, char **argv) |
30 | { | 30 | { |
31 | FILE *in, *out; | 31 | FILE *in, *out; |
32 | const char *s0, *e0, *s1, *e1, *input_filename; | 32 | const char *s0, *e0, *s1, *e1, *input_filename; |
diff --git a/coreutils/usleep.c b/coreutils/usleep.c index d34880d3a..e7acd5f82 100644 --- a/coreutils/usleep.c +++ b/coreutils/usleep.c | |||
@@ -14,7 +14,7 @@ | |||
14 | /* This is a NOFORK applet. Be very careful! */ | 14 | /* This is a NOFORK applet. Be very careful! */ |
15 | 15 | ||
16 | int usleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 16 | int usleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 | int usleep_main(int argc ATTRIBUTE_UNUSED, char **argv) | 17 | int usleep_main(int argc UNUSED_PARAM, char **argv) |
18 | { | 18 | { |
19 | if (!argv[1]) { | 19 | if (!argv[1]) { |
20 | bb_show_usage(); | 20 | bb_show_usage(); |
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index 8b18b7a73..81a86cb15 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
@@ -136,7 +136,7 @@ static void read_base64(FILE *src_stream, FILE *dst_stream) | |||
136 | } | 136 | } |
137 | 137 | ||
138 | int uudecode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 138 | int uudecode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
139 | int uudecode_main(int argc ATTRIBUTE_UNUSED, char **argv) | 139 | int uudecode_main(int argc UNUSED_PARAM, char **argv) |
140 | { | 140 | { |
141 | FILE *src_stream; | 141 | FILE *src_stream; |
142 | char *outname = NULL; | 142 | char *outname = NULL; |
diff --git a/coreutils/wc.c b/coreutils/wc.c index de3c895bd..d0e5482ca 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.c | |||
@@ -69,7 +69,7 @@ enum { | |||
69 | }; | 69 | }; |
70 | 70 | ||
71 | int wc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 71 | int wc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
72 | int wc_main(int argc ATTRIBUTE_UNUSED, char **argv) | 72 | int wc_main(int argc UNUSED_PARAM, char **argv) |
73 | { | 73 | { |
74 | FILE *fp; | 74 | FILE *fp; |
75 | const char *s, *arg; | 75 | const char *s, *arg; |
diff --git a/coreutils/who.c b/coreutils/who.c index a206ec54b..a4ec740f0 100644 --- a/coreutils/who.c +++ b/coreutils/who.c | |||
@@ -41,7 +41,7 @@ static void idle_string(char *str6, time_t t) | |||
41 | } | 41 | } |
42 | 42 | ||
43 | int who_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 43 | int who_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
44 | int who_main(int argc ATTRIBUTE_UNUSED, char **argv) | 44 | int who_main(int argc UNUSED_PARAM, char **argv) |
45 | { | 45 | { |
46 | char str6[6]; | 46 | char str6[6]; |
47 | struct utmp *ut; | 47 | struct utmp *ut; |
diff --git a/coreutils/whoami.c b/coreutils/whoami.c index d35572ece..6756d4ba9 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c | |||
@@ -14,7 +14,7 @@ | |||
14 | /* This is a NOFORK applet. Be very careful! */ | 14 | /* This is a NOFORK applet. Be very careful! */ |
15 | 15 | ||
16 | int whoami_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 16 | int whoami_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
17 | int whoami_main(int argc, char **argv ATTRIBUTE_UNUSED) | 17 | int whoami_main(int argc, char **argv UNUSED_PARAM) |
18 | { | 18 | { |
19 | if (argc > 1) | 19 | if (argc > 1) |
20 | bb_show_usage(); | 20 | bb_show_usage(); |