mirror of
https://github.com/tmux/tmux.git
synced 2025-01-07 16:28:48 +00:00
No extra : for errx and warnx.
This commit is contained in:
parent
b79df1dc29
commit
fd96ccfd80
@ -51,10 +51,8 @@ errx(int eval, const char *fmt, ...)
|
|||||||
fprintf(stderr, "%s: ", getprogname());
|
fprintf(stderr, "%s: ", getprogname());
|
||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
if (fmt != NULL) {
|
if (fmt != NULL)
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
fprintf(stderr, ": ");
|
|
||||||
}
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
putc('\n', stderr);
|
putc('\n', stderr);
|
||||||
@ -87,10 +85,8 @@ warnx(const char *fmt, ...)
|
|||||||
fprintf(stderr, "%s: ", getprogname());
|
fprintf(stderr, "%s: ", getprogname());
|
||||||
|
|
||||||
va_start(ap, fmt);
|
va_start(ap, fmt);
|
||||||
if (fmt != NULL) {
|
if (fmt != NULL)
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(stderr, fmt, ap);
|
||||||
fprintf(stderr, ": ");
|
|
||||||
}
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
putc('\n', stderr);
|
putc('\n', stderr);
|
||||||
|
Loading…
Reference in New Issue
Block a user