v[hp]error_msg have 2-3 callsites only -> incorporate there.
This commit is contained in:
@ -15,10 +15,7 @@ void bb_perror_msg_and_die(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);
|
||||
xfunc_die();
|
||||
}
|
||||
|
Reference in New Issue
Block a user