]> git.armaanb.net Git - opendoas.git/commitdiff
Print -a flag in usage() only if HAVE_BSD_AUTH_H
authorPhilip K <philippija@gmail.com>
Mon, 5 Sep 2016 16:26:24 +0000 (18:26 +0200)
committerDuncaen <mail@duncano.de>
Tue, 6 Sep 2016 00:57:10 +0000 (02:57 +0200)
Closes: #11 [via git-merge-pr]
doas.c

diff --git a/doas.c b/doas.c
index fa0eafb4970ccff8a5bad147ef910b7aa3984c45..7494b07d97e47782507e6578f0b3b024c8e0d78a 100644 (file)
--- a/doas.c
+++ b/doas.c
@@ -46,8 +46,11 @@ version(void)
 static void __dead
 usage(void)
 {
-       fprintf(stderr, "usage: doas [-nsv] [-a style] [-C config] [-u user]"
-           " command [args]\n");
+       fprintf(stderr, "usage: doas [-nsv] "
+#ifdef HAVE_BSD_AUTH_H
+           "[-a style] "
+#endif
+           "[-C config] [-u user] command [args]\n");
        exit(1);
 }