listen: eliminated freeAllListenSockets()

Merged freeAllListenSockets() into closeAllListenSockets(), because
this is its only caller.
This commit is contained in:
Max Kellermann 2008-12-30 16:28:00 +01:00
parent 4cc0caf1af
commit d99595c214
2 changed files with 0 additions and 5 deletions

View File

@ -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;

View File

@ -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);