projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fcf784
)
socket.c: make use of union sockaddr_union
author
Daniel Buch
<boogiewasthere@gmail.com>
Wed, 12 Mar 2014 19:09:25 +0000
(20:09 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 12 Mar 2014 22:35:44 +0000
(23:35 +0100)
src/core/socket.c
patch
|
blob
|
history
diff --git
a/src/core/socket.c
b/src/core/socket.c
index
35531ed
..
8ecc9f9
100644
(file)
--- 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);