listen: eliminated freeAllListenSockets()
Merged freeAllListenSockets() into closeAllListenSockets(), because this is its only caller.
This commit is contained in:
parent
4cc0caf1af
commit
d99595c214
@ -272,11 +272,7 @@ void closeAllListenSockets(void)
|
||||
g_debug("closing listen socket %i", i);
|
||||
while (close(listenSockets[i]) < 0 && errno == EINTR) ;
|
||||
}
|
||||
freeAllListenSockets();
|
||||
}
|
||||
|
||||
void freeAllListenSockets(void)
|
||||
{
|
||||
numberOfListenSockets = 0;
|
||||
free(listenSockets);
|
||||
listenSockets = NULL;
|
||||
|
@ -28,7 +28,6 @@ void listenOnPort(void);
|
||||
void getConnections(fd_set * fds);
|
||||
|
||||
void closeAllListenSockets(void);
|
||||
void freeAllListenSockets(void);
|
||||
|
||||
/* fdmax should be initialized to something */
|
||||
void addListenSocketsToFdSet(fd_set * fds, int *fdmax);
|
||||
|
Loading…
Reference in New Issue
Block a user