v[hp]error_msg have 2-3 callsites only -> incorporate there.

This commit is contained in:
Denis Vlasenko
2007-08-15 20:07:53 +00:00
parent bb23c06919
commit ab9c44b1a4
9 changed files with 6 additions and 47 deletions

View File

@@ -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);
}