aboutsummaryrefslogtreecommitdiff
path: root/libbb/perror_msg.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-15 20:07:53 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-15 20:07:53 +0000
commitab9c44b1a41c9a17cd0f8a8f1e5517756ccb8bf0 (patch)
tree3a29ec44d7f37fc0a4e380531666413fa30d7e12 /libbb/perror_msg.c
parentbb23c069191f18ed11b826371ed3571e214b41e3 (diff)
downloadbusybox-ab9c44b1a41c9a17cd0f8a8f1e5517756ccb8bf0.tar.gz
v[hp]error_msg have 2-3 callsites only -> incorporate there.
Diffstat (limited to 'libbb/perror_msg.c')
-rw-r--r--libbb/perror_msg.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libbb/perror_msg.c b/libbb/perror_msg.c
index 2ec1a9b2a..a958cff00 100644
--- a/libbb/perror_msg.c
+++ b/libbb/perror_msg.c
@@ -15,9 +15,6 @@ void bb_perror_msg(const char *s, ...)
va_start(p, s);
/* Guard against "<error message>: Success" */
- if (!errno)
- bb_verror_msg(s, p, NULL);
- else
- bb_vperror_msg(s, p);
+ bb_verror_msg(s, p, errno ? strerror(errno) : NULL);
va_end(p);
}