From fc4df78fd381731e8125ddd7afa251bd00975e60 Mon Sep 17 00:00:00 2001 From: Philip K Date: Mon, 5 Sep 2016 18:26:24 +0200 Subject: [PATCH] Print -a flag in usage() only if HAVE_BSD_AUTH_H Closes: #11 [via git-merge-pr] --- doas.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doas.c b/doas.c index fa0eafb..7494b07 100644 --- 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); } -- 2.39.2