diff options
author | rofl0r <retnyg@gmx.net> | 2018-12-31 14:24:17 +0000 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2019-12-21 00:43:45 +0000 |
commit | 82e10935d2955923d419cb46ee97e0022a8dfdb0 (patch) | |
tree | 2c8dd5732517ebf4e37d77b81086edb8493c065b /src | |
parent | fa2ad0cf9ac1bf24c7c4ddb188b5922132e38f73 (diff) |
move sockaddr_union to sock.h
Diffstat (limited to 'src')
-rw-r--r-- | src/child.c | 5 | ||||
-rw-r--r-- | src/sock.h | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/child.c b/src/child.c index 06a977e..3ae3d82 100644 --- a/src/child.c +++ b/src/child.c @@ -36,11 +36,6 @@ static vector_t listen_fds; -union sockaddr_union { - struct sockaddr_in v4; - struct sockaddr_in6 v6; -}; - struct client { union sockaddr_union addr; int fd; @@ -28,8 +28,14 @@ #define MAXLINE (1024 * 4) +#include "common.h" #include "vector.h" +union sockaddr_union { + struct sockaddr_in v4; + struct sockaddr_in6 v6; +}; + extern int opensock (const char *host, int port, const char *bind_to); extern int listen_sock (const char *addr, uint16_t port, vector_t listen_fds); |