]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: make more stuff const
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Mar 2022 09:02:41 +0000 (10:02 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 17 Mar 2022 18:07:48 +0000 (19:07 +0100)
And if we make it const, we can also make it static.

src/nspawn/nspawn.c

index 8e0bc1c07708e2b26e56faec292506934caa695f..1a654d88171a9baf252889c37025d6109e72c35b 100644 (file)
@@ -3563,7 +3563,7 @@ static int inner_child(
 
 static int setup_notify_child(void) {
         _cleanup_close_ int fd = -1;
-        union sockaddr_union sa = {
+        static const union sockaddr_union sa = {
                 .un.sun_family = AF_UNIX,
                 .un.sun_path = NSPAWN_NOTIFY_SOCKET_PATH,
         };