diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-16 01:05:58 +0100 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2020-09-16 01:05:58 +0100 |
commit | 7d33fc8e8a8802f8962f612510d252bbbe465757 (patch) | |
tree | 339696bf23d58f406d87ce6619e37564b1a30576 /src/sock.c | |
parent | a5890b621b0985b807865e56f9d230cdd3b6b070 (diff) |
listen_fds: use sblist
Diffstat (limited to 'src/sock.c')
-rw-r--r-- | src/sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -277,7 +277,7 @@ static int listen_on_one_socket(struct addrinfo *ad) * Upon success, the listen-fds are added to the listen_fds list * and 0 is returned. Upon error, -1 is returned. */ -int listen_sock (const char *addr, uint16_t port, vector_t listen_fds) +int listen_sock (const char *addr, uint16_t port, sblist* listen_fds) { struct addrinfo hints, *result, *rp; char portstr[6]; @@ -315,7 +315,7 @@ int listen_sock (const char *addr, uint16_t port, vector_t listen_fds) continue; } - vector_append (listen_fds, &listenfd, sizeof(int)); + sblist_add (listen_fds, &listenfd); /* success */ ret = 0; |