listen_fds: use sblist
This commit is contained in:
1 parent
a5890b621b
commit
7d33fc8e8a
3 files changed
+12
-12
No files matched your search
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user