diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-16 15:37:52 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-16 15:37:52 +0200 |
commit | f61448083198dc0e4e0d19a916bcd478336cc85d (patch) | |
tree | e9325f22f715d5788b46e5ecbeb6e2fc94a73010 /src/socket-util.h | |
parent | 6e200d55ae538fc29360cdaa9863f30cdddf58f3 (diff) |
systemctl: add support for delayed shutdown, similar to sysv in style
Diffstat (limited to 'src/socket-util.h')
-rw-r--r-- | src/socket-util.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/socket-util.h b/src/socket-util.h index 86c9e47809..b5cb2a844d 100644 --- a/src/socket-util.h +++ b/src/socket-util.h @@ -30,14 +30,16 @@ #include "macro.h" #include "util.h" +union sockaddr_union { + struct sockaddr sa; + struct sockaddr_in in4; + struct sockaddr_in6 in6; + struct sockaddr_un un; + struct sockaddr_storage storage; +}; + typedef struct SocketAddress { - union { - struct sockaddr sa; - struct sockaddr_in in4; - struct sockaddr_in6 in6; - struct sockaddr_un un; - struct sockaddr_storage storage; - } sockaddr; + union sockaddr_union sockaddr; /* We store the size here explicitly due to the weird * sockaddr_un semantics for abstract sockets */ |