long_options variable is not modified anywhere. Can be moved to const initialized data section.
From: Kacper Piwiński vfjpl1@gmail.com
--- server/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/main.c b/server/main.c index e014ec535ff..de902a58045 100644 --- a/server/main.c +++ b/server/main.c @@ -100,7 +100,7 @@ static void option_callback( int optc, char *optarg ) /* command-line option parsing */ /* partly based on the GLibc getopt() implementation */
-static struct long_option +static const struct long_option { const char *name; int has_arg;