summaryrefslogtreecommitdiff
path: root/src/resolve/resolved.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-07 23:11:48 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-07 23:11:48 +0200
commitc92e531c82a9815ec349aa1bf31236b86b2d5311 (patch)
tree688cda1de0754a63bea0617b4ebf3bd13bad2e05 /src/resolve/resolved.h
parent186fe1db20902b6542cee58ba499ced914d687a8 (diff)
resolved: make use of union in_addr_union in resolved, too
Diffstat (limited to 'src/resolve/resolved.h')
-rw-r--r--src/resolve/resolved.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/resolve/resolved.h b/src/resolve/resolved.h
index 984edc76c1..48b361db57 100644
--- a/src/resolve/resolved.h
+++ b/src/resolve/resolved.h
@@ -26,6 +26,7 @@
#include "util.h"
#include "list.h"
+#include "socket-util.h"
typedef struct Address Address;
typedef struct Manager Manager;
@@ -33,10 +34,7 @@ typedef struct Manager Manager;
struct Address {
unsigned char family;
- union {
- struct in_addr in;
- struct in6_addr in6;
- } in_addr;
+ union in_addr_union in_addr;
LIST_FIELDS(Address, addresses);
};