summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Buch <boogiewasthere@gmail.com>2014-03-12 20:09:25 +0100
committerLennart Poettering <lennart@poettering.net>2014-03-12 23:35:44 +0100
commit9d16d0c7d0b05e3ff278c3c95e1f2f871f348dd3 (patch)
tree2169539819239f5af917d0f489aa0000389938e0
parent8fcf784dffba1ca24c2790b96c18dd689d4981fb (diff)
socket.c: make use of union sockaddr_union
-rw-r--r--src/core/socket.c8
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);