summaryrefslogtreecommitdiff
path: root/runit/sv.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-16 22:32:04 +0000
committerDenis Vlasenko2007-04-16 22:32:04 +0000
commitac678ec2f127fc02a93fff2c164e0b13a94a6abf (patch)
treef1354d1d4e3ca29b1fd77698d45791e61fd7a8b1 /runit/sv.c
parent17e3c34aa7abe42aa604234235338e2b8087b8a0 (diff)
downloadbusybox-ac678ec2f127fc02a93fff2c164e0b13a94a6abf.zip
busybox-ac678ec2f127fc02a93fff2c164e0b13a94a6abf.tar.gz
style fixes, no code changes
Diffstat (limited to 'runit/sv.c')
-rw-r--r--runit/sv.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/runit/sv.c b/runit/sv.c
index d52eb6d..01488c0 100644
--- a/runit/sv.c
+++ b/runit/sv.c
@@ -183,23 +183,28 @@ static void out(const char *p, const char *m1)
#define WARN "warning: "
#define OK "ok: "
-static void fail(const char *m1) {
+static void fail(const char *m1)
+{
++rc;
out("fail: ", m1);
}
-static void failx(const char *m1) {
+static void failx(const char *m1)
+{
errno = 0;
fail(m1);
}
-static void warn_cannot(const char *m1) {
+static void warn_cannot(const char *m1)
+{
++rc;
out("warning: cannot ", m1);
}
-static void warnx_cannot(const char *m1) {
+static void warnx_cannot(const char *m1)
+{
errno = 0;
warn_cannot(m1);
}
-static void ok(const char *m1) {
+static void ok(const char *m1)
+{
errno = 0;
out(OK, m1);
}