aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Unangst <tedu@openbsd.org>2015-07-16 21:00:59 +0000
committerTed Unangst <tedu@openbsd.org>2015-07-16 21:00:59 +0000
commit92f869cf0ae0aa1493a6eefaac253bce2afd9178 (patch)
treebfd0cb6c0266ce7216094bc75c52609787e90f18
parent63916476e2cfa9402bbe21be29dee2a7d60d775e (diff)
downloadopendoas-92f869cf0ae0aa1493a6eefaac253bce2afd9178.tar.gz
combine fprintfs and use a constant format string. hint from reyk
-rw-r--r--doas.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/doas.c b/doas.c
index 7c800bd..c658e9c 100644
--- a/doas.c
+++ b/doas.c
@@ -1,4 +1,4 @@
-/* $OpenBSD$ */
+/* $OpenBSD: doas.c,v 1.1 2015/07/16 20:44:21 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);
}