diff options
author | Max Kellermann <max@duempel.org> | 2008-12-30 16:28:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-12-30 16:28:00 +0100 |
commit | d99595c2143ef31d4bf3b2274d55100f39363be3 (patch) | |
tree | 3bc71a717d1c87ee8df88400101f0f6528119240 | |
parent | 4cc0caf1af38fe0f2b43e54ff607852553b5510d (diff) | |
download | mpd-d99595c2143ef31d4bf3b2274d55100f39363be3.tar.gz mpd-d99595c2143ef31d4bf3b2274d55100f39363be3.tar.xz mpd-d99595c2143ef31d4bf3b2274d55100f39363be3.zip |
listen: eliminated freeAllListenSockets()
Merged freeAllListenSockets() into closeAllListenSockets(), because
this is its only caller.
-rw-r--r-- | src/listen.c | 4 | ||||
-rw-r--r-- | src/listen.h | 1 |
2 files changed, 0 insertions, 5 deletions
diff --git a/src/listen.c b/src/listen.c index 9fc374c25..67a40f95c 100644 --- a/src/listen.c +++ b/src/listen.c @@ -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; diff --git a/src/listen.h b/src/listen.h index caf839fcb..625cb006c 100644 --- a/src/listen.h +++ b/src/listen.h @@ -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); |