aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-30 16:28:00 +0100
committerMax Kellermann <max@duempel.org>2008-12-30 16:28:00 +0100
commitd99595c2143ef31d4bf3b2274d55100f39363be3 (patch)
tree3bc71a717d1c87ee8df88400101f0f6528119240 /src
parent4cc0caf1af38fe0f2b43e54ff607852553b5510d (diff)
downloadmpd-d99595c2143ef31d4bf3b2274d55100f39363be3.tar.gz
mpd-d99595c2143ef31d4bf3b2274d55100f39363be3.tar.xz
mpd-d99595c2143ef31d4bf3b2274d55100f39363be3.zip
listen: eliminated freeAllListenSockets()
Merged freeAllListenSockets() into closeAllListenSockets(), because this is its only caller.
Diffstat (limited to '')
-rw-r--r--src/listen.c4
-rw-r--r--src/listen.h1
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);