From ac678ec2f127fc02a93fff2c164e0b13a94a6abf Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 16 Apr 2007 22:32:04 +0000 Subject: style fixes, no code changes --- runit/sv.c | 15 ++++++++++----- runit/svlogd.c | 3 ++- 2 files changed, 12 insertions(+), 6 deletions(-) (limited to 'runit') 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); } diff --git a/runit/svlogd.c b/runit/svlogd.c index 1d66255..c2cff96 100644 --- a/runit/svlogd.c +++ b/runit/svlogd.c @@ -92,7 +92,8 @@ static void fatalx(const char *m0) { bb_error_msg_and_die(FATAL"%s", m0); } -static void warn(const char *m0) { +static void warn(const char *m0) +{ bb_perror_msg(WARNING"%s", m0); } static void warn2(const char *m0, const char *m1) -- cgit v1.1