]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn,vmspawn: fixups for recent changes
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 8 Apr 2026 14:41:06 +0000 (16:41 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Wed, 8 Apr 2026 21:19:03 +0000 (23:19 +0200)
Nits found in post-merge review for
bf5bc9a7b26191ff4254836bd909cbb92eafe480 and
4c778c51c07db3eb0e07dd875f10eb85f086f096.

src/nspawn/nspawn.c
src/vmspawn/vmspawn.c

index 211f1248932a29c47216493d4723522cd7d2f4e9..10fda88c480547b50dbeb24f6ff2cdba423f64cf 100644 (file)
@@ -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);
index 93c8fbbbbd2ed09c1e4f5169bf2016b305c75a04..f5dc4f17a8ce30c843333631a71a53e6350a1593 100644 (file)
@@ -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",