diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-15 20:07:53 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-15 20:07:53 +0000 |
commit | ab9c44b1a41c9a17cd0f8a8f1e5517756ccb8bf0 (patch) | |
tree | 3a29ec44d7f37fc0a4e380531666413fa30d7e12 /libbb/perror_msg_and_die.c | |
parent | bb23c069191f18ed11b826371ed3571e214b41e3 (diff) | |
download | busybox-w32-ab9c44b1a41c9a17cd0f8a8f1e5517756ccb8bf0.tar.gz busybox-w32-ab9c44b1a41c9a17cd0f8a8f1e5517756ccb8bf0.tar.bz2 busybox-w32-ab9c44b1a41c9a17cd0f8a8f1e5517756ccb8bf0.zip |
v[hp]error_msg have 2-3 callsites only -> incorporate there.
Diffstat (limited to 'libbb/perror_msg_and_die.c')
-rw-r--r-- | libbb/perror_msg_and_die.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libbb/perror_msg_and_die.c b/libbb/perror_msg_and_die.c index 90f56e04c..15f46fc05 100644 --- a/libbb/perror_msg_and_die.c +++ b/libbb/perror_msg_and_die.c | |||
@@ -15,10 +15,7 @@ void bb_perror_msg_and_die(const char *s, ...) | |||
15 | 15 | ||
16 | va_start(p, s); | 16 | va_start(p, s); |
17 | /* Guard against "<error message>: Success" */ | 17 | /* Guard against "<error message>: Success" */ |
18 | if (!errno) | 18 | bb_verror_msg(s, p, errno ? strerror(errno) : NULL); |
19 | bb_verror_msg(s, p, NULL); | ||
20 | else | ||
21 | bb_vperror_msg(s, p); | ||
22 | va_end(p); | 19 | va_end(p); |
23 | xfunc_die(); | 20 | xfunc_die(); |
24 | } | 21 | } |