From: Philip K Date: Mon, 5 Sep 2016 16:26:24 +0000 (+0200) Subject: Print -a flag in usage() only if HAVE_BSD_AUTH_H X-Git-Tag: v6.0~2 X-Git-Url: https://git.armaanb.net/?p=opendoas.git;a=commitdiff_plain;h=fc4df78fd381731e8125ddd7afa251bd00975e60 Print -a flag in usage() only if HAVE_BSD_AUTH_H Closes: #11 [via git-merge-pr] --- 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); }