diff options
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/socket.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index 35531edb75..8ecc9f9950 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -597,13 +597,7 @@ static void socket_dump(Unit *u, FILE *f, const char *prefix) { static int instance_from_socket(int fd, unsigned nr, char **instance) { socklen_t l; char *r; - union { - struct sockaddr sa; - struct sockaddr_un un; - struct sockaddr_in in; - struct sockaddr_in6 in6; - struct sockaddr_storage storage; - } local, remote; + union sockaddr_union local, remote; assert(fd >= 0); assert(instance); |