mirror of
https://github.com/systemd/systemd.git
synced 2026-08-03 22:50:29 +00:00
manager: reuse sockaddr_union instead of redefining our own version of it
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user