From 3538b9a8822421b7c8596a33a917dcf2f99c92b7 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 6 Sep 2006 18:36:50 +0000 Subject: Implement optional syslog logging using ordinary bb_xx_msg calls, and convert networking/* to it. The rest of bbox will be converted gradually. --- libbb/vperror_msg.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libbb/vperror_msg.c') diff --git a/libbb/vperror_msg.c b/libbb/vperror_msg.c index 5a854ec..70fd671 100644 --- a/libbb/vperror_msg.c +++ b/libbb/vperror_msg.c @@ -15,9 +15,5 @@ void bb_vperror_msg(const char *s, va_list p) { - int err=errno; - if(s == 0) s = ""; - bb_verror_msg(s, p); - if (*s) s = ": "; - fprintf(stderr, "%s%s\n", s, strerror(err)); + bb_verror_msg(s, p, strerror(errno)); } -- cgit v1.1