summaryrefslogtreecommitdiffhomepage
path: root/src/sock.c
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-16 01:05:58 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-16 01:05:58 +0100
commit7d33fc8e8a8802f8962f612510d252bbbe465757 (patch)
tree339696bf23d58f406d87ce6619e37564b1a30576 /src/sock.c
parenta5890b621b0985b807865e56f9d230cdd3b6b070 (diff)
listen_fds: use sblist
Diffstat (limited to 'src/sock.c')
-rw-r--r--src/sock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sock.c b/src/sock.c
index 73ddebd..983c4ea 100644
--- a/src/sock.c
+++ b/src/sock.c
@@ -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;