[PATCH 0/1] MR8355: server: Add const to long_options static variable
June 17, 2025
9:25 p.m.
long_options variable is not modified anywhere. Can be moved to const initialized data section. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8355
June 2025
9:25 p.m.
New subject: [PATCH 1/1] server: Add const to long_options static variable
From: Kacper Piwiński <vfjpl1(a)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; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8355
283
Age (days ago)
283
Last active (days ago)
1 comments
1 participants
participants (1)
-
Kacper Piwiński