From: Zbigniew Jędrzejewski-Szmek Date: Wed, 8 Apr 2026 14:41:06 +0000 (+0200) Subject: nspawn,vmspawn: fixups for recent changes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2227c8a207e7afbaa07cd796aac5728d423bf4a;p=thirdparty%2Fsystemd.git nspawn,vmspawn: fixups for recent changes Nits found in post-merge review for bf5bc9a7b26191ff4254836bd909cbb92eafe480 and 4c778c51c07db3eb0e07dd875f10eb85f086f096. --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 211f1248932..10fda88c480 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -379,7 +379,7 @@ static int help(void) { if (r < 0) return log_oom(); - static const char *groups[] = { + static const char* const groups[] = { NULL, "Image", "Execution", @@ -1372,7 +1372,7 @@ static int parse_argv(int argc, char *argv[]) { * been repurposed to optionally set the runtime scope, with --uid= replacing * the old container user functionality. To maintain backwards compatibility * with the space-separated form (--user NAME), if the next arg does not look - * like an option, interpret it a user name. */ + * like an option, interpret it as a user name. */ const char *t = option_parser_next_arg(&state); if (t && t[0] != '-') { arg = option_parser_consume_next_arg(&state); diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c index 93c8fbbbbd2..f5dc4f17a8c 100644 --- a/src/vmspawn/vmspawn.c +++ b/src/vmspawn/vmspawn.c @@ -218,7 +218,7 @@ static int help(void) { if (r < 0) return log_oom(); - static const char *groups[] = { + static const char* const groups[] = { NULL, "Image", "Host Configuration",