summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2017-03-09 16:49:37 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2017-03-09 16:49:37 +0000
commitfd96ccfd802aec27a4835f7bb2030003b9668e64 (patch)
tree04f8e6d97cd63ee22e323082edf98b6b3694f0b8 /compat
parentb79df1dc29c5ca3181be3e6e642f6c51e951e34e (diff)
No extra : for errx and warnx.
Diffstat (limited to 'compat')
-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);