projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1d0b89
)
nspawn: make more stuff const
author
Lennart Poettering
<lennart@poettering.net>
Thu, 17 Mar 2022 09:02:41 +0000
(10:02 +0100)
committer
Lennart 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
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index 8e0bc1c07708e2b26e56faec292506934caa695f..1a654d88171a9baf252889c37025d6109e72c35b 100644
(file)
--- 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,
};