diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 22:51:58 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 22:51:58 +0000 |
commit | ab2aea44479fd6f519bccd651a37f30e792b7593 (patch) | |
tree | 443636e12ffb52db95168013bbda80f78ed49fe6 /runit/runsvdir.c | |
parent | 06c0a71d2315756db874e98bc4f760ca3283b6a6 (diff) | |
download | busybox-w32-ab2aea44479fd6f519bccd651a37f30e792b7593.tar.gz busybox-w32-ab2aea44479fd6f519bccd651a37f30e792b7593.tar.bz2 busybox-w32-ab2aea44479fd6f519bccd651a37f30e792b7593.zip |
preparatory patch for -Wwrite-strings #4
Diffstat (limited to 'runit/runsvdir.c')
-rw-r--r-- | runit/runsvdir.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/runit/runsvdir.c b/runit/runsvdir.c index 22f2a0505..7e1dd6c30 100644 --- a/runit/runsvdir.c +++ b/runit/runsvdir.c | |||
@@ -28,20 +28,20 @@ static int exitsoon; | |||
28 | static int pgrp; | 28 | static int pgrp; |
29 | 29 | ||
30 | #define usage() bb_show_usage() | 30 | #define usage() bb_show_usage() |
31 | static void fatal2_cannot(char *m1, char *m2) | 31 | static void fatal2_cannot(const char *m1, const char *m2) |
32 | { | 32 | { |
33 | bb_perror_msg_and_die("%s: fatal: cannot %s%s", svdir, m1, m2); | 33 | bb_perror_msg_and_die("%s: fatal: cannot %s%s", svdir, m1, m2); |
34 | /* was exiting 100 */ | 34 | /* was exiting 100 */ |
35 | } | 35 | } |
36 | static void warn3x(char *m1, char *m2, char *m3) | 36 | static void warn3x(const char *m1, const char *m2, const char *m3) |
37 | { | 37 | { |
38 | bb_error_msg("%s: warning: %s%s%s", svdir, m1, m2, m3); | 38 | bb_error_msg("%s: warning: %s%s%s", svdir, m1, m2, m3); |
39 | } | 39 | } |
40 | static void warn2_cannot(char *m1, char *m2) | 40 | static void warn2_cannot(const char *m1, const char *m2) |
41 | { | 41 | { |
42 | warn3x("cannot ", m1, m2); | 42 | warn3x("cannot ", m1, m2); |
43 | } | 43 | } |
44 | static void warnx(char *m1) | 44 | static void warnx(const char *m1) |
45 | { | 45 | { |
46 | warn3x(m1, "", ""); | 46 | warn3x(m1, "", ""); |
47 | } | 47 | } |
@@ -55,7 +55,7 @@ static void s_hangup(int sig_no) | |||
55 | exitsoon = 2; | 55 | exitsoon = 2; |
56 | } | 56 | } |
57 | 57 | ||
58 | static void runsv(int no, char *name) | 58 | static void runsv(int no, const char *name) |
59 | { | 59 | { |
60 | int pid = fork(); | 60 | int pid = fork(); |
61 | 61 | ||
@@ -67,8 +67,8 @@ static void runsv(int no, char *name) | |||
67 | /* child */ | 67 | /* child */ |
68 | char *prog[3]; | 68 | char *prog[3]; |
69 | 69 | ||
70 | prog[0] = "runsv"; | 70 | prog[0] = (char*)"runsv"; |
71 | prog[1] = name; | 71 | prog[1] = (char*)name; |
72 | prog[2] = NULL; | 72 | prog[2] = NULL; |
73 | sig_uncatch(SIGHUP); | 73 | sig_uncatch(SIGHUP); |
74 | sig_uncatch(SIGTERM); | 74 | sig_uncatch(SIGTERM); |