losetup: getopt_ulflags'ification + small fix for perror_nomsg

This commit is contained in:
Denis Vlasenko
2006-09-22 14:53:41 +00:00
parent 099efbf99e
commit 27ee7ba95e
2 changed files with 36 additions and 32 deletions

View File

@ -27,7 +27,9 @@ void bb_verror_msg(const char *s, va_list p, const char* strerr)
if (!strerr)
fputs(msg_eol, stderr);
else
fprintf(stderr, ": %s%s", strerr, msg_eol);
fprintf(stderr, "%s%s%s",
s ? ": " : "",
strerr, msg_eol);
}
if (ENABLE_FEATURE_SYSLOG && (logmode & LOGMODE_SYSLOG)) {
if (!strerr)