aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/cat.c2
-rw-r--r--coreutils/catv.c2
-rw-r--r--coreutils/chmod.c2
-rw-r--r--coreutils/chown.c4
-rw-r--r--coreutils/cksum.c2
-rw-r--r--coreutils/comm.c2
-rw-r--r--coreutils/cut.c2
-rw-r--r--coreutils/date.c2
-rw-r--r--coreutils/dd.c4
-rw-r--r--coreutils/du.c2
-rw-r--r--coreutils/echo.c2
-rw-r--r--coreutils/env.c2
-rw-r--r--coreutils/expand.c2
-rw-r--r--coreutils/false.c2
-rw-r--r--coreutils/hostid.c2
-rw-r--r--coreutils/id.c2
-rw-r--r--coreutils/logname.c2
-rw-r--r--coreutils/ls.c2
-rw-r--r--coreutils/md5_sha1_sum.c2
-rw-r--r--coreutils/mkfifo.c2
-rw-r--r--coreutils/od_bloaty.c6
-rw-r--r--coreutils/printenv.c2
-rw-r--r--coreutils/printf.c2
-rw-r--r--coreutils/pwd.c2
-rw-r--r--coreutils/readlink.c2
-rw-r--r--coreutils/realpath.c2
-rw-r--r--coreutils/rm.c2
-rw-r--r--coreutils/rmdir.c2
-rw-r--r--coreutils/sleep.c2
-rw-r--r--coreutils/sort.c2
-rw-r--r--coreutils/split.c2
-rw-r--r--coreutils/stty.c4
-rw-r--r--coreutils/sum.c2
-rw-r--r--coreutils/sync.c2
-rw-r--r--coreutils/tac.c2
-rw-r--r--coreutils/test.c2
-rw-r--r--coreutils/touch.c2
-rw-r--r--coreutils/tr.c2
-rw-r--r--coreutils/true.c2
-rw-r--r--coreutils/tty.c2
-rw-r--r--coreutils/uname.c2
-rw-r--r--coreutils/uniq.c2
-rw-r--r--coreutils/usleep.c2
-rw-r--r--coreutils/uudecode.c2
-rw-r--r--coreutils/wc.c2
-rw-r--r--coreutils/who.c2
-rw-r--r--coreutils/whoami.c2
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
42int cat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 42int cat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
43int cat_main(int argc ATTRIBUTE_UNUSED, char **argv) 43int 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
15int catv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 15int catv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
16int catv_main(int argc ATTRIBUTE_UNUSED, char **argv) 16int 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
70int chmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 70int chmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
71int chmod_main(int argc ATTRIBUTE_UNUSED, char **argv) 71int 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);
42static struct bb_uidgid_t ugid = { -1, -1 }; 42static struct bb_uidgid_t ugid = { -1, -1 };
43 43
44static int FAST_FUNC fileAction(const char *fileName, struct stat *statbuf, 44static 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
64int chown_main(int argc ATTRIBUTE_UNUSED, char **argv) 64int 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
11int cksum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 11int cksum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
12int cksum_main(int argc ATTRIBUTE_UNUSED, char **argv) 12int 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
38int comm_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 38int comm_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
39int comm_main(int argc ATTRIBUTE_UNUSED, char **argv) 39int 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
164int cut_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 164int cut_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
165int cut_main(int argc ATTRIBUTE_UNUSED, char **argv) 165int 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
41int date_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 41int date_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
42int date_main(int argc ATTRIBUTE_UNUSED, char **argv) 42int 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
44static void dd_output_status(int ATTRIBUTE_UNUSED cur_signal) 44static 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
81int dd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 81int dd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
82int dd_main(int argc ATTRIBUTE_UNUSED, char **argv) 82int 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
143int du_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 143int du_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
144int du_main(int argc ATTRIBUTE_UNUSED, char **argv) 144int 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
32int echo_main(int argc ATTRIBUTE_UNUSED, char **argv) 32int 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
41int env_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 41int env_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
42int env_main(int argc ATTRIBUTE_UNUSED, char **argv) 42int 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
128int expand_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 128int expand_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
129int expand_main(int argc ATTRIBUTE_UNUSED, char **argv) 129int 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
17int false_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 17int false_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
18int false_main(int ATTRIBUTE_UNUSED argc, char ATTRIBUTE_UNUSED **argv) 18int 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
16int hostid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 16int hostid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
17int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv) 17int 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
39int id_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 39int id_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
40int id_main(int argc ATTRIBUTE_UNUSED, char **argv) 40int 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
27int logname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 27int logname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
28int logname_main(int argc, char ATTRIBUTE_UNUSED **argv) 28int 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
827int ls_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 827int ls_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
828int ls_main(int argc ATTRIBUTE_UNUSED, char **argv) 828int 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
77int md5_sha1_sum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 77int md5_sha1_sum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
78int md5_sha1_sum_main(int argc ATTRIBUTE_UNUSED, char **argv) 78int 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
16int mkfifo_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 16int mkfifo_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
17int mkfifo_main(int argc ATTRIBUTE_UNUSED, char **argv) 17int 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
365static void 365static void
366print_named_ascii(size_t n_bytes, const char *block, 366print_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
405static void 405static void
406print_ascii(size_t n_bytes, const char *block, 406print_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)
814typedef void FN_format_address(off_t address, char c); 814typedef void FN_format_address(off_t address, char c);
815 815
816static void 816static void
817format_address_none(off_t address ATTRIBUTE_UNUSED, char c ATTRIBUTE_UNUSED) 817format_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
13int printenv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 13int printenv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
14int printenv_main(int argc ATTRIBUTE_UNUSED, char **argv) 14int 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
282int printf_main(int argc ATTRIBUTE_UNUSED, char **argv) 282int 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
14int pwd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 14int pwd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
15int pwd_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) 15int 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
12int readlink_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 12int readlink_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
13int readlink_main(int argc ATTRIBUTE_UNUSED, char **argv) 13int 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
15int realpath_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 15int realpath_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
16int realpath_main(int argc ATTRIBUTE_UNUSED, char **argv) 16int 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
22int rm_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 22int rm_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
23int rm_main(int argc ATTRIBUTE_UNUSED, char **argv) 23int 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
21int rmdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 21int rmdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
22int rmdir_main(int argc ATTRIBUTE_UNUSED, char **argv) 22int 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
36int sleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 36int sleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
37int sleep_main(int argc ATTRIBUTE_UNUSED, char **argv) 37int 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
278int sort_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 278int sort_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
279int sort_main(int argc ATTRIBUTE_UNUSED, char **argv) 279int 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
58int split_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 58int split_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
59int split_main(int argc ATTRIBUTE_UNUSED, char **argv) 59int 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
695static ATTRIBUTE_NORETURN void perror_on_device_and_die(const char *fmt) 695static 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
853static void display_recoverable(const struct termios *mode, 853static 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
73int sum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 73int sum_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
74int sum_main(int argc ATTRIBUTE_UNUSED, char **argv) 74int 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
16int sync_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 16int sync_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
17int sync_main(int argc, char **argv ATTRIBUTE_UNUSED) 17int 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
28int tac_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 28int tac_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
29int tac_main(int argc ATTRIBUTE_UNUSED, char **argv) 29int 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
188static arith_t primary(enum token n); 188static arith_t primary(enum token n);
189 189
190static void syntax(const char *op, const char *msg) ATTRIBUTE_NORETURN; 190static void syntax(const char *op, const char *msg) NORETURN;
191static void syntax(const char *op, const char *msg) 191static 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
40int touch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 40int touch_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
41int touch_main(int argc ATTRIBUTE_UNUSED, char **argv) 41int 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
176int tr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 176int tr_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
177int tr_main(int argc ATTRIBUTE_UNUSED, char **argv) 177int 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
17int true_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 17int true_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
18int true_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) 18int 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
15int tty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 15int tty_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
16int tty_main(int argc, char **argv SKIP_INCLUDE_SUSv2(ATTRIBUTE_UNUSED)) 16int 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
51int uname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 51int uname_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
52int uname_main(int argc ATTRIBUTE_UNUSED, char **argv) 52int 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
28int uniq_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 28int uniq_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
29int uniq_main(int argc ATTRIBUTE_UNUSED, char **argv) 29int 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
16int usleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 16int usleep_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
17int usleep_main(int argc ATTRIBUTE_UNUSED, char **argv) 17int 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
138int uudecode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 138int uudecode_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
139int uudecode_main(int argc ATTRIBUTE_UNUSED, char **argv) 139int 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
71int wc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 71int wc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
72int wc_main(int argc ATTRIBUTE_UNUSED, char **argv) 72int 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
43int who_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 43int who_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
44int who_main(int argc ATTRIBUTE_UNUSED, char **argv) 44int 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
16int whoami_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 16int whoami_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
17int whoami_main(int argc, char **argv ATTRIBUTE_UNUSED) 17int 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();