From: Lennart Poettering Date: Thu, 17 Mar 2022 09:02:41 +0000 (+0100) Subject: nspawn: make more stuff const X-Git-Tag: v251-rc1~125^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eb874b97819983f2e9a3355efbb90e929d39398;p=thirdparty%2Fsystemd.git nspawn: make more stuff const And if we make it const, we can also make it static. --- diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 8e0bc1c0770..1a654d88171 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -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, };