aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
Diffstat (limited to 'runit')
-rw-r--r--runit/chpst.c18
-rw-r--r--runit/runit_lib.h6
-rw-r--r--runit/runsv.c6
-rw-r--r--runit/runsvdir.c6
-rw-r--r--runit/sv.c4
-rw-r--r--runit/svlogd.c8
6 files changed, 24 insertions, 24 deletions
diff --git a/runit/chpst.c b/runit/chpst.c
index 4de53f051..899a4eef0 100644
--- a/runit/chpst.c
+++ b/runit/chpst.c
@@ -282,13 +282,13 @@ static void slimit(void)
282} 282}
283 283
284/* argv[0] */ 284/* argv[0] */
285static void setuidgid(int, char **) ATTRIBUTE_NORETURN; 285static void setuidgid(int, char **) NORETURN;
286static void envuidgid(int, char **) ATTRIBUTE_NORETURN; 286static void envuidgid(int, char **) NORETURN;
287static void envdir(int, char **) ATTRIBUTE_NORETURN; 287static void envdir(int, char **) NORETURN;
288static void softlimit(int, char **) ATTRIBUTE_NORETURN; 288static void softlimit(int, char **) NORETURN;
289 289
290int chpst_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 290int chpst_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
291int chpst_main(int argc ATTRIBUTE_UNUSED, char **argv) 291int chpst_main(int argc UNUSED_PARAM, char **argv)
292{ 292{
293 INIT_G(); 293 INIT_G();
294 294
@@ -347,7 +347,7 @@ int chpst_main(int argc ATTRIBUTE_UNUSED, char **argv)
347 bb_perror_msg_and_die("exec %s", argv[0]); 347 bb_perror_msg_and_die("exec %s", argv[0]);
348} 348}
349 349
350static void setuidgid(int argc ATTRIBUTE_UNUSED, char **argv) 350static void setuidgid(int argc UNUSED_PARAM, char **argv)
351{ 351{
352 const char *account; 352 const char *account;
353 353
@@ -359,7 +359,7 @@ static void setuidgid(int argc ATTRIBUTE_UNUSED, char **argv)
359 bb_perror_msg_and_die("exec %s", argv[0]); 359 bb_perror_msg_and_die("exec %s", argv[0]);
360} 360}
361 361
362static void envuidgid(int argc ATTRIBUTE_UNUSED, char **argv) 362static void envuidgid(int argc UNUSED_PARAM, char **argv)
363{ 363{
364 const char *account; 364 const char *account;
365 365
@@ -371,7 +371,7 @@ static void envuidgid(int argc ATTRIBUTE_UNUSED, char **argv)
371 bb_perror_msg_and_die("exec %s", argv[0]); 371 bb_perror_msg_and_die("exec %s", argv[0]);
372} 372}
373 373
374static void envdir(int argc ATTRIBUTE_UNUSED, char **argv) 374static void envdir(int argc UNUSED_PARAM, char **argv)
375{ 375{
376 const char *dir; 376 const char *dir;
377 377
@@ -383,7 +383,7 @@ static void envdir(int argc ATTRIBUTE_UNUSED, char **argv)
383 bb_perror_msg_and_die("exec %s", argv[0]); 383 bb_perror_msg_and_die("exec %s", argv[0]);
384} 384}
385 385
386static void softlimit(int argc ATTRIBUTE_UNUSED, char **argv) 386static void softlimit(int argc UNUSED_PARAM, char **argv)
387{ 387{
388 char *a,*c,*d,*f,*l,*m,*o,*p,*r,*s,*t; 388 char *a,*c,*d,*f,*l,*m,*o,*p,*r,*s,*t;
389 getopt32(argv, "+a:c:d:f:l:m:o:p:r:s:t:", 389 getopt32(argv, "+a:c:d:f:l:m:o:p:r:s:t:",
diff --git a/runit/runit_lib.h b/runit/runit_lib.h
index c94e61cf2..b0b6dc220 100644
--- a/runit/runit_lib.h
+++ b/runit/runit_lib.h
@@ -88,9 +88,9 @@ extern unsigned pmatch(const char *, const char *, unsigned);
88 * runsv / supervise / sv stuff 88 * runsv / supervise / sv stuff
89 */ 89 */
90typedef struct svstatus_t { 90typedef struct svstatus_t {
91 uint64_t time_be64 ATTRIBUTE_PACKED; 91 uint64_t time_be64 PACKED;
92 uint32_t time_nsec_be32 ATTRIBUTE_PACKED; 92 uint32_t time_nsec_be32 PACKED;
93 uint32_t pid_le32 ATTRIBUTE_PACKED; 93 uint32_t pid_le32 PACKED;
94 uint8_t paused; 94 uint8_t paused;
95 uint8_t want; 95 uint8_t want;
96 uint8_t got_term; 96 uint8_t got_term;
diff --git a/runit/runsv.c b/runit/runsv.c
index 6981fa774..bd0f3dcc2 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -127,12 +127,12 @@ static void warn_cannot(const char *m)
127 bb_perror_msg("%s: warning: cannot %s", dir, m); 127 bb_perror_msg("%s: warning: cannot %s", dir, m);
128} 128}
129 129
130static void s_child(int sig_no ATTRIBUTE_UNUSED) 130static void s_child(int sig_no UNUSED_PARAM)
131{ 131{
132 write(selfpipe.wr, "", 1); 132 write(selfpipe.wr, "", 1);
133} 133}
134 134
135static void s_term(int sig_no ATTRIBUTE_UNUSED) 135static void s_term(int sig_no UNUSED_PARAM)
136{ 136{
137 sigterm = 1; 137 sigterm = 1;
138 write(selfpipe.wr, "", 1); /* XXX */ 138 write(selfpipe.wr, "", 1); /* XXX */
@@ -434,7 +434,7 @@ static int ctrl(struct svdir *s, char c)
434} 434}
435 435
436int runsv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 436int runsv_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
437int runsv_main(int argc ATTRIBUTE_UNUSED, char **argv) 437int runsv_main(int argc UNUSED_PARAM, char **argv)
438{ 438{
439 struct stat s; 439 struct stat s;
440 int fd; 440 int fd;
diff --git a/runit/runsvdir.c b/runit/runsvdir.c
index df6b8869d..aaa4c470c 100644
--- a/runit/runsvdir.c
+++ b/runit/runsvdir.c
@@ -89,11 +89,11 @@ static void warnx(const char *m1)
89 warn3x(m1, "", ""); 89 warn3x(m1, "", "");
90} 90}
91 91
92static void s_term(int sig_no ATTRIBUTE_UNUSED) 92static void s_term(int sig_no UNUSED_PARAM)
93{ 93{
94 exitsoon = 1; 94 exitsoon = 1;
95} 95}
96static void s_hangup(int sig_no ATTRIBUTE_UNUSED) 96static void s_hangup(int sig_no UNUSED_PARAM)
97{ 97{
98 exitsoon = 2; 98 exitsoon = 2;
99} 99}
@@ -229,7 +229,7 @@ static int setup_log(void)
229} 229}
230 230
231int runsvdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 231int runsvdir_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
232int runsvdir_main(int argc ATTRIBUTE_UNUSED, char **argv) 232int runsvdir_main(int argc UNUSED_PARAM, char **argv)
233{ 233{
234 struct stat s; 234 struct stat s;
235 dev_t last_dev = last_dev; /* for gcc */ 235 dev_t last_dev = last_dev; /* for gcc */
diff --git a/runit/sv.c b/runit/sv.c
index d5a9bd9cf..1b92b9a23 100644
--- a/runit/sv.c
+++ b/runit/sv.c
@@ -176,7 +176,7 @@ struct globals {
176#define INIT_G() do { } while (0) 176#define INIT_G() do { } while (0)
177 177
178 178
179static void fatal_cannot(const char *m1) ATTRIBUTE_NORETURN; 179static void fatal_cannot(const char *m1) NORETURN;
180static void fatal_cannot(const char *m1) 180static void fatal_cannot(const char *m1)
181{ 181{
182 bb_perror_msg("fatal: cannot %s", m1); 182 bb_perror_msg("fatal: cannot %s", m1);
@@ -293,7 +293,7 @@ static unsigned svstatus_print(const char *m)
293 return pid ? 1 : 2; 293 return pid ? 1 : 2;
294} 294}
295 295
296static int status(const char *unused ATTRIBUTE_UNUSED) 296static int status(const char *unused UNUSED_PARAM)
297{ 297{
298 int r; 298 int r;
299 299
diff --git a/runit/svlogd.c b/runit/svlogd.c
index bfb97166f..66b96b8de 100644
--- a/runit/svlogd.c
+++ b/runit/svlogd.c
@@ -788,14 +788,14 @@ static int buffer_pread(/*int fd, */char *s, unsigned len)
788 return i; 788 return i;
789} 789}
790 790
791static void sig_term_handler(int sig_no ATTRIBUTE_UNUSED) 791static void sig_term_handler(int sig_no UNUSED_PARAM)
792{ 792{
793 if (verbose) 793 if (verbose)
794 bb_error_msg(INFO"sig%s received", "term"); 794 bb_error_msg(INFO"sig%s received", "term");
795 exitasap = 1; 795 exitasap = 1;
796} 796}
797 797
798static void sig_child_handler(int sig_no ATTRIBUTE_UNUSED) 798static void sig_child_handler(int sig_no UNUSED_PARAM)
799{ 799{
800 int pid, l; 800 int pid, l;
801 801
@@ -812,14 +812,14 @@ static void sig_child_handler(int sig_no ATTRIBUTE_UNUSED)
812 } 812 }
813} 813}
814 814
815static void sig_alarm_handler(int sig_no ATTRIBUTE_UNUSED) 815static void sig_alarm_handler(int sig_no UNUSED_PARAM)
816{ 816{
817 if (verbose) 817 if (verbose)
818 bb_error_msg(INFO"sig%s received", "alarm"); 818 bb_error_msg(INFO"sig%s received", "alarm");
819 rotateasap = 1; 819 rotateasap = 1;
820} 820}
821 821
822static void sig_hangup_handler(int sig_no ATTRIBUTE_UNUSED) 822static void sig_hangup_handler(int sig_no UNUSED_PARAM)
823{ 823{
824 if (verbose) 824 if (verbose)
825 bb_error_msg(INFO"sig%s received", "hangup"); 825 bb_error_msg(INFO"sig%s received", "hangup");