1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-28 03:25:31 +03:00

socket.c: make use of union sockaddr_union

This commit is contained in:
Daniel Buch 2014-03-12 20:09:25 +01:00 committed by Lennart Poettering
parent 8fcf784dff
commit 9d16d0c7d0

View File

@ -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);