mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
socket.c: make use of union sockaddr_union
This commit is contained in:
parent
8fcf784dff
commit
9d16d0c7d0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user