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);
|
g_debug("closing listen socket %i", i);
|
||||||
while (close(listenSockets[i]) < 0 && errno == EINTR) ;
|
while (close(listenSockets[i]) < 0 && errno == EINTR) ;
|
||||||
}
|
}
|
||||||
freeAllListenSockets();
|
|
||||||
}
|
|
||||||
|
|
||||||
void freeAllListenSockets(void)
|
|
||||||
{
|
|
||||||
numberOfListenSockets = 0;
|
numberOfListenSockets = 0;
|
||||||
free(listenSockets);
|
free(listenSockets);
|
||||||
listenSockets = NULL;
|
listenSockets = NULL;
|
||||||
|
@ -28,7 +28,6 @@ void listenOnPort(void);
|
|||||||
void getConnections(fd_set * fds);
|
void getConnections(fd_set * fds);
|
||||||
|
|
||||||
void closeAllListenSockets(void);
|
void closeAllListenSockets(void);
|
||||||
void freeAllListenSockets(void);
|
|
||||||
|
|
||||||
/* fdmax should be initialized to something */
|
/* fdmax should be initialized to something */
|
||||||
void addListenSocketsToFdSet(fd_set * fds, int *fdmax);
|
void addListenSocketsToFdSet(fd_set * fds, int *fdmax);
|
||||||
|
Loading…
Reference in New Issue
Block a user