diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/bbconfig.c | 2 | ||||
-rw-r--r-- | miscutils/chat.c | 4 | ||||
-rw-r--r-- | miscutils/chrt.c | 2 | ||||
-rw-r--r-- | miscutils/crond.c | 2 | ||||
-rw-r--r-- | miscutils/crontab.c | 2 | ||||
-rw-r--r-- | miscutils/dc.c | 2 | ||||
-rw-r--r-- | miscutils/devfsd.c | 2 | ||||
-rw-r--r-- | miscutils/eject.c | 2 | ||||
-rw-r--r-- | miscutils/fbsplash.c | 2 | ||||
-rw-r--r-- | miscutils/hdparm.c | 4 | ||||
-rw-r--r-- | miscutils/inotifyd.c | 2 | ||||
-rw-r--r-- | miscutils/last.c | 2 | ||||
-rw-r--r-- | miscutils/last_fancy.c | 2 | ||||
-rw-r--r-- | miscutils/man.c | 2 | ||||
-rw-r--r-- | miscutils/microcom.c | 2 | ||||
-rw-r--r-- | miscutils/mt.c | 2 | ||||
-rw-r--r-- | miscutils/rx.c | 2 | ||||
-rw-r--r-- | miscutils/setsid.c | 2 | ||||
-rw-r--r-- | miscutils/strings.c | 2 | ||||
-rw-r--r-- | miscutils/taskset.c | 2 | ||||
-rw-r--r-- | miscutils/time.c | 2 | ||||
-rw-r--r-- | miscutils/watchdog.c | 2 |
22 files changed, 24 insertions, 24 deletions
diff --git a/miscutils/bbconfig.c b/miscutils/bbconfig.c index f3aef42e3..689052e86 100644 --- a/miscutils/bbconfig.c +++ b/miscutils/bbconfig.c | |||
@@ -5,7 +5,7 @@ | |||
5 | #include "bbconfigopts.h" | 5 | #include "bbconfigopts.h" |
6 | 6 | ||
7 | int bbconfig_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 7 | int bbconfig_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
8 | int bbconfig_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) | 8 | int bbconfig_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM) |
9 | { | 9 | { |
10 | printf(bbconfig_config); | 10 | printf(bbconfig_config); |
11 | return 0; | 11 | return 0; |
diff --git a/miscutils/chat.c b/miscutils/chat.c index 5bbbb688f..d550c7c90 100644 --- a/miscutils/chat.c +++ b/miscutils/chat.c | |||
@@ -41,7 +41,7 @@ enum { | |||
41 | static /*volatile*/ smallint exitcode; | 41 | static /*volatile*/ smallint exitcode; |
42 | 42 | ||
43 | // trap for critical signals | 43 | // trap for critical signals |
44 | static void signal_handler(ATTRIBUTE_UNUSED int signo) | 44 | static void signal_handler(UNUSED_PARAM int signo) |
45 | { | 45 | { |
46 | // report I/O error condition | 46 | // report I/O error condition |
47 | exitcode = ERR_IO; | 47 | exitcode = ERR_IO; |
@@ -103,7 +103,7 @@ static size_t unescape(char *s, int *nocr) | |||
103 | 103 | ||
104 | 104 | ||
105 | int chat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 105 | int chat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
106 | int chat_main(int argc ATTRIBUTE_UNUSED, char **argv) | 106 | int chat_main(int argc UNUSED_PARAM, char **argv) |
107 | { | 107 | { |
108 | // should we dump device output? to what fd? by default no. | 108 | // should we dump device output? to what fd? by default no. |
109 | // this can be controlled later via ECHO {ON|OFF} chat directive | 109 | // this can be controlled later via ECHO {ON|OFF} chat directive |
diff --git a/miscutils/chrt.c b/miscutils/chrt.c index a0f684bb3..23ef58c4d 100644 --- a/miscutils/chrt.c +++ b/miscutils/chrt.c | |||
@@ -41,7 +41,7 @@ static void show_min_max(int pol) | |||
41 | #define OPT_o (1<<4) | 41 | #define OPT_o (1<<4) |
42 | 42 | ||
43 | int chrt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 43 | int chrt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
44 | int chrt_main(int argc ATTRIBUTE_UNUSED, char **argv) | 44 | int chrt_main(int argc UNUSED_PARAM, char **argv) |
45 | { | 45 | { |
46 | pid_t pid = 0; | 46 | pid_t pid = 0; |
47 | unsigned opt; | 47 | unsigned opt; |
diff --git a/miscutils/crond.c b/miscutils/crond.c index ecb3a2f80..e48abf9f8 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c | |||
@@ -159,7 +159,7 @@ static void crondlog(const char *ctl, ...) | |||
159 | } | 159 | } |
160 | 160 | ||
161 | int crond_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 161 | int crond_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
162 | int crond_main(int argc ATTRIBUTE_UNUSED, char **argv) | 162 | int crond_main(int argc UNUSED_PARAM, char **argv) |
163 | { | 163 | { |
164 | unsigned opt; | 164 | unsigned opt; |
165 | 165 | ||
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index dc3179dac..64ea4e616 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c | |||
@@ -85,7 +85,7 @@ static int open_as_user(const struct passwd *pas, const char *file) | |||
85 | } | 85 | } |
86 | 86 | ||
87 | int crontab_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 87 | int crontab_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
88 | int crontab_main(int argc ATTRIBUTE_UNUSED, char **argv) | 88 | int crontab_main(int argc UNUSED_PARAM, char **argv) |
89 | { | 89 | { |
90 | const struct passwd *pas; | 90 | const struct passwd *pas; |
91 | const char *crontab_dir = CRONTABS; | 91 | const char *crontab_dir = CRONTABS; |
diff --git a/miscutils/dc.c b/miscutils/dc.c index bd93ef68b..47ec060c8 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c | |||
@@ -193,7 +193,7 @@ static char *get_token(char **buffer) | |||
193 | } | 193 | } |
194 | 194 | ||
195 | int dc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 195 | int dc_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
196 | int dc_main(int argc ATTRIBUTE_UNUSED, char **argv) | 196 | int dc_main(int argc UNUSED_PARAM, char **argv) |
197 | { | 197 | { |
198 | INIT_G(); | 198 | INIT_G(); |
199 | 199 | ||
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c index ffc595ac9..c85ff08f3 100644 --- a/miscutils/devfsd.c +++ b/miscutils/devfsd.c | |||
@@ -741,7 +741,7 @@ static void action_permissions(const struct devfsd_notify_struct *info, | |||
741 | } /* End Function action_permissions */ | 741 | } /* End Function action_permissions */ |
742 | 742 | ||
743 | static void action_modload(const struct devfsd_notify_struct *info, | 743 | static void action_modload(const struct devfsd_notify_struct *info, |
744 | const struct config_entry_struct *entry ATTRIBUTE_UNUSED) | 744 | const struct config_entry_struct *entry UNUSED_PARAM) |
745 | /* [SUMMARY] Load a module. | 745 | /* [SUMMARY] Load a module. |
746 | <info> The devfs change. | 746 | <info> The devfs change. |
747 | <entry> The config file entry. | 747 | <entry> The config file entry. |
diff --git a/miscutils/eject.c b/miscutils/eject.c index aa22a3a42..ff3976ebb 100644 --- a/miscutils/eject.c +++ b/miscutils/eject.c | |||
@@ -83,7 +83,7 @@ static void eject_cdrom(unsigned flags, const char *dev) | |||
83 | } | 83 | } |
84 | 84 | ||
85 | int eject_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 85 | int eject_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
86 | int eject_main(int argc ATTRIBUTE_UNUSED, char **argv) | 86 | int eject_main(int argc UNUSED_PARAM, char **argv) |
87 | { | 87 | { |
88 | unsigned flags; | 88 | unsigned flags; |
89 | const char *device; | 89 | const char *device; |
diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c index 07350b0cc..67847c1eb 100644 --- a/miscutils/fbsplash.c +++ b/miscutils/fbsplash.c | |||
@@ -355,7 +355,7 @@ static void init(const char *cfg_filename) | |||
355 | 355 | ||
356 | 356 | ||
357 | int fbsplash_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 357 | int fbsplash_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
358 | int fbsplash_main(int argc ATTRIBUTE_UNUSED, char **argv) | 358 | int fbsplash_main(int argc UNUSED_PARAM, char **argv) |
359 | { | 359 | { |
360 | const char *fb_device, *cfg_filename, *fifo_filename; | 360 | const char *fb_device, *cfg_filename, *fifo_filename; |
361 | FILE *fp = fp; // for compiler | 361 | FILE *fp = fp; // for compiler |
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c index a5d5b05cd..b75da16ec 100644 --- a/miscutils/hdparm.c +++ b/miscutils/hdparm.c | |||
@@ -678,7 +678,7 @@ static const char secu_str[] ALIGN1 = | |||
678 | ; | 678 | ; |
679 | 679 | ||
680 | // Parse 512 byte disk identification block and print much crap. | 680 | // Parse 512 byte disk identification block and print much crap. |
681 | static void identify(uint16_t *val) ATTRIBUTE_NORETURN; | 681 | static void identify(uint16_t *val) NORETURN; |
682 | static void identify(uint16_t *val) | 682 | static void identify(uint16_t *val) |
683 | { | 683 | { |
684 | uint16_t ii, jj, kk; | 684 | uint16_t ii, jj, kk; |
@@ -1908,7 +1908,7 @@ static int fromhex(unsigned char c) | |||
1908 | bb_error_msg_and_die("bad char: '%c' 0x%02x", c, c); | 1908 | bb_error_msg_and_die("bad char: '%c' 0x%02x", c, c); |
1909 | } | 1909 | } |
1910 | 1910 | ||
1911 | static void identify_from_stdin(void) ATTRIBUTE_NORETURN; | 1911 | static void identify_from_stdin(void) NORETURN; |
1912 | static void identify_from_stdin(void) | 1912 | static void identify_from_stdin(void) |
1913 | { | 1913 | { |
1914 | uint16_t sbuf[256]; | 1914 | uint16_t sbuf[256]; |
diff --git a/miscutils/inotifyd.c b/miscutils/inotifyd.c index 0d7ad2a9d..2a1a15348 100644 --- a/miscutils/inotifyd.c +++ b/miscutils/inotifyd.c | |||
@@ -56,7 +56,7 @@ extern int inotify_init(void); | |||
56 | extern int inotify_add_watch(int fd, const char *path, uint32_t mask); | 56 | extern int inotify_add_watch(int fd, const char *path, uint32_t mask); |
57 | 57 | ||
58 | int inotifyd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 58 | int inotifyd_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
59 | int inotifyd_main(int argc ATTRIBUTE_UNUSED, char **argv) | 59 | int inotifyd_main(int argc UNUSED_PARAM, char **argv) |
60 | { | 60 | { |
61 | unsigned mask = IN_ALL_EVENTS; // assume we want all events | 61 | unsigned mask = IN_ALL_EVENTS; // assume we want all events |
62 | struct pollfd pfd; | 62 | struct pollfd pfd; |
diff --git a/miscutils/last.c b/miscutils/last.c index 612f50488..8c8192bee 100644 --- a/miscutils/last.c +++ b/miscutils/last.c | |||
@@ -35,7 +35,7 @@ | |||
35 | #endif | 35 | #endif |
36 | 36 | ||
37 | int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 37 | int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
38 | int last_main(int argc, char **argv ATTRIBUTE_UNUSED) | 38 | int last_main(int argc, char **argv UNUSED_PARAM) |
39 | { | 39 | { |
40 | struct utmp ut; | 40 | struct utmp ut; |
41 | int n, file = STDIN_FILENO; | 41 | int n, file = STDIN_FILENO; |
diff --git a/miscutils/last_fancy.c b/miscutils/last_fancy.c index 2b7fee6e5..8e63e5c3d 100644 --- a/miscutils/last_fancy.c +++ b/miscutils/last_fancy.c | |||
@@ -148,7 +148,7 @@ static int is_runlevel_shutdown(struct utmp *ut) | |||
148 | } | 148 | } |
149 | 149 | ||
150 | int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 150 | int last_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
151 | int last_main(int argc ATTRIBUTE_UNUSED, char **argv) | 151 | int last_main(int argc UNUSED_PARAM, char **argv) |
152 | { | 152 | { |
153 | struct utmp ut; | 153 | struct utmp ut; |
154 | const char *filename = _PATH_WTMP; | 154 | const char *filename = _PATH_WTMP; |
diff --git a/miscutils/man.c b/miscutils/man.c index 95cb6797b..3685be7b6 100644 --- a/miscutils/man.c +++ b/miscutils/man.c | |||
@@ -73,7 +73,7 @@ static int show_manpage(const char *pager, char *man_filename, int man) | |||
73 | } | 73 | } |
74 | 74 | ||
75 | int man_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 75 | int man_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
76 | int man_main(int argc ATTRIBUTE_UNUSED, char **argv) | 76 | int man_main(int argc UNUSED_PARAM, char **argv) |
77 | { | 77 | { |
78 | FILE *cf; | 78 | FILE *cf; |
79 | const char *pager; | 79 | const char *pager; |
diff --git a/miscutils/microcom.c b/miscutils/microcom.c index 1608960e9..ac3e5514f 100644 --- a/miscutils/microcom.c +++ b/miscutils/microcom.c | |||
@@ -41,7 +41,7 @@ static int xset1(int fd, struct termios *tio, const char *device) | |||
41 | } | 41 | } |
42 | 42 | ||
43 | int microcom_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 43 | int microcom_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
44 | int microcom_main(int argc ATTRIBUTE_UNUSED, char **argv) | 44 | int microcom_main(int argc UNUSED_PARAM, char **argv) |
45 | { | 45 | { |
46 | int sfd; | 46 | int sfd; |
47 | int nfd; | 47 | int nfd; |
diff --git a/miscutils/mt.c b/miscutils/mt.c index c56a8e0ca..586373d13 100644 --- a/miscutils/mt.c +++ b/miscutils/mt.c | |||
@@ -81,7 +81,7 @@ static const char opcode_name[] ALIGN1 = | |||
81 | "weof" "\0"; | 81 | "weof" "\0"; |
82 | 82 | ||
83 | int mt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 83 | int mt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
84 | int mt_main(int argc ATTRIBUTE_UNUSED, char **argv) | 84 | int mt_main(int argc UNUSED_PARAM, char **argv) |
85 | { | 85 | { |
86 | const char *file = "/dev/tape"; | 86 | const char *file = "/dev/tape"; |
87 | struct mtop op; | 87 | struct mtop op; |
diff --git a/miscutils/rx.c b/miscutils/rx.c index 48867b83c..94eb4522d 100644 --- a/miscutils/rx.c +++ b/miscutils/rx.c | |||
@@ -213,7 +213,7 @@ static int receive(/*int read_fd, */int file_fd) | |||
213 | } /* for (;;) */ | 213 | } /* for (;;) */ |
214 | } | 214 | } |
215 | 215 | ||
216 | static void sigalrm_handler(int ATTRIBUTE_UNUSED signum) | 216 | static void sigalrm_handler(int UNUSED_PARAM signum) |
217 | { | 217 | { |
218 | } | 218 | } |
219 | 219 | ||
diff --git a/miscutils/setsid.c b/miscutils/setsid.c index 014de51e5..127adf6f2 100644 --- a/miscutils/setsid.c +++ b/miscutils/setsid.c | |||
@@ -17,7 +17,7 @@ | |||
17 | #include "libbb.h" | 17 | #include "libbb.h" |
18 | 18 | ||
19 | int setsid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 19 | int setsid_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
20 | int setsid_main(int argc ATTRIBUTE_UNUSED, char **argv) | 20 | int setsid_main(int argc UNUSED_PARAM, char **argv) |
21 | { | 21 | { |
22 | if (!argv[1]) | 22 | if (!argv[1]) |
23 | bb_show_usage(); | 23 | bb_show_usage(); |
diff --git a/miscutils/strings.c b/miscutils/strings.c index 147413741..3e02b53af 100644 --- a/miscutils/strings.c +++ b/miscutils/strings.c | |||
@@ -15,7 +15,7 @@ | |||
15 | #define SIZE 8 | 15 | #define SIZE 8 |
16 | 16 | ||
17 | int strings_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 17 | int strings_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
18 | int strings_main(int argc ATTRIBUTE_UNUSED, char **argv) | 18 | int strings_main(int argc UNUSED_PARAM, char **argv) |
19 | { | 19 | { |
20 | int n, c, status = EXIT_SUCCESS; | 20 | int n, c, status = EXIT_SUCCESS; |
21 | unsigned opt; | 21 | unsigned opt; |
diff --git a/miscutils/taskset.c b/miscutils/taskset.c index 708abd9f2..3175af10d 100644 --- a/miscutils/taskset.c +++ b/miscutils/taskset.c | |||
@@ -40,7 +40,7 @@ static char *__from_cpuset(cpu_set_t *mask) | |||
40 | 40 | ||
41 | 41 | ||
42 | int taskset_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 42 | int taskset_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
43 | int taskset_main(int argc ATTRIBUTE_UNUSED, char **argv) | 43 | int taskset_main(int argc UNUSED_PARAM, char **argv) |
44 | { | 44 | { |
45 | cpu_set_t mask; | 45 | cpu_set_t mask; |
46 | pid_t pid = 0; | 46 | pid_t pid = 0; |
diff --git a/miscutils/time.c b/miscutils/time.c index cce7d5b3e..d8b8aa0c5 100644 --- a/miscutils/time.c +++ b/miscutils/time.c | |||
@@ -396,7 +396,7 @@ static void run_command(char *const *cmd, resource_t *resp) | |||
396 | } | 396 | } |
397 | 397 | ||
398 | int time_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; | 398 | int time_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; |
399 | int time_main(int argc ATTRIBUTE_UNUSED, char **argv) | 399 | int time_main(int argc UNUSED_PARAM, char **argv) |
400 | { | 400 | { |
401 | resource_t res; | 401 | resource_t res; |
402 | const char *output_format = default_format; | 402 | const char *output_format = default_format; |
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c index 4ad21cbc9..9b1a110ea 100644 --- a/miscutils/watchdog.c +++ b/miscutils/watchdog.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #define OPT_FOREGROUND 0x01 | 13 | #define OPT_FOREGROUND 0x01 |
14 | #define OPT_TIMER 0x02 | 14 | #define OPT_TIMER 0x02 |
15 | 15 | ||
16 | static void watchdog_shutdown(int sig ATTRIBUTE_UNUSED) | 16 | static void watchdog_shutdown(int sig UNUSED_PARAM) |
17 | { | 17 | { |
18 | static const char V = 'V'; | 18 | static const char V = 'V'; |
19 | 19 | ||