diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-21 16:51:44 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-21 17:24:21 +0200 |
commit | 55836941ff642d42403921fa9d5fd2f8376ae722 (patch) | |
tree | 35c2c8a6172d006e14d9eb5cf28d8e90bac7cb58 /src/core | |
parent | 28849dbadb7cd127f7f89e8892ec94c6a05070da (diff) |
manager: reuse sockaddr_union instead of redefining our own version of it
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/manager.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index 445461b6b9..e488aba5f8 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -527,13 +527,10 @@ static int manager_setup_notify(Manager *m) { if (m->notify_fd < 0) { _cleanup_close_ int fd = -1; - union { - struct sockaddr sa; - struct sockaddr_un un; - } sa = { + union sockaddr_union sa = { .sa.sa_family = AF_UNIX, }; - int one = 1; + static const int one = 1; /* First free all secondary fields */ free(m->notify_socket); |