aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compat/err.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/compat/err.c b/compat/err.c
index d7f0c0bd..f470692f 100644
--- a/compat/err.c
+++ b/compat/err.c
@@ -51,10 +51,8 @@ errx(int eval, const char *fmt, ...)
fprintf(stderr, "%s: ", getprogname());
va_start(ap, fmt);
- if (fmt != NULL) {
+ if (fmt != NULL)
vfprintf(stderr, fmt, ap);
- fprintf(stderr, ": ");
- }
va_end(ap);
putc('\n', stderr);
@@ -87,10 +85,8 @@ warnx(const char *fmt, ...)
fprintf(stderr, "%s: ", getprogname());
va_start(ap, fmt);
- if (fmt != NULL) {
+ if (fmt != NULL)
vfprintf(stderr, fmt, ap);
- fprintf(stderr, ": ");
- }
va_end(ap);
putc('\n', stderr);