summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-07-16 21:00:59 +0000
committertedu <tedu@openbsd.org>2015-07-16 21:00:59 +0000
commit74772c966fdd27bcdee05d86fadd330276998c12 (patch)
treedf03b8fb6a830d090a21749e6546762398f13583
parentMake tcpdump show 11n HT capabilities in 802.11 management frames. (diff)
downloadwireguard-openbsd-74772c966fdd27bcdee05d86fadd330276998c12.tar.xz
wireguard-openbsd-74772c966fdd27bcdee05d86fadd330276998c12.zip
combine fprintfs and use a constant format string. hint from reyk
-rw-r--r--usr.bin/doas/doas.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/doas/doas.c b/usr.bin/doas/doas.c
index e0d42ccb3e4..bb93198b8dc 100644
--- a/usr.bin/doas/doas.c
+++ b/usr.bin/doas/doas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: doas.c,v 1.1 2015/07/16 20:44:21 tedu Exp $ */
+/* $OpenBSD: doas.c,v 1.2 2015/07/16 21:00:59 tedu Exp $ */
/*
* Copyright (c) 2015 Ted Unangst <tedu@openbsd.org>
*
@@ -238,8 +238,7 @@ fail(void)
const char *m;
m = msgs[arc4random_uniform(sizeof(msgs) / sizeof(msgs[0]))];
- fprintf(stderr, m);
- fprintf(stderr, "\n");
+ fprintf(stderr, "%s\n", m);
exit(1);
}