From 81ea920435b4980683a0329cc43060fc060cf479 Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Tue, 16 Jan 2024 17:29:12 +0100 Subject: [PATCH] pflowclt: fix gcc build error gcc is unhappy with the nested extern declaration of __progname, so move it out of the usage() function. Sponsored by: Rubicon Communications, LLC ("Netgate") --- sbin/pflowctl/pflowctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/pflowctl/pflowctl.c b/sbin/pflowctl/pflowctl.c index 7be85d8b6ad4..35daedfdf478 100644 --- a/sbin/pflowctl/pflowctl.c +++ b/sbin/pflowctl/pflowctl.c @@ -47,11 +47,11 @@ static int get(int id); +extern char *__progname; + static void usage(void) { - extern char *__progname; - fprintf(stderr, "usage: %s [-la] [-d id]\n", __progname);