[vlc-commits] tcp: privatize net_AcceptSingle()

Rémi Denis-Courmont git at videolan.org
Sun Nov 11 16:33:28 CET 2018


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Nov  9 22:34:34 2018 +0200| [9e4b1a3b0bb500341c8b47a9a9fbdfafd9269eed] | committer: Rémi Denis-Courmont

tcp: privatize net_AcceptSingle()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9e4b1a3b0bb500341c8b47a9a9fbdfafd9269eed
---

 include/vlc_network.h | 2 --
 src/libvlccore.sym    | 1 -
 src/network/io.c      | 2 +-
 3 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/include/vlc_network.h b/include/vlc_network.h
index 529bee3f04..1b5c7ddcae 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -132,8 +132,6 @@ VLC_API int * net_Listen(vlc_object_t *p_this, const char *psz_host, unsigned i_
 VLC_API int net_ConnectTCP (vlc_object_t *obj, const char *host, int port);
 #define net_ConnectTCP(a, b, c) net_ConnectTCP(VLC_OBJECT(a), b, c)
 
-VLC_API int net_AcceptSingle(vlc_object_t *obj, int lfd);
-
 /**
  * Accepts an new connection on a set of listening sockets.
  *
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 5eceab3934..e555ec22b6 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -282,7 +282,6 @@ vlc_obj_free
 vlc_tick_sleep
 vlc_tick_wait
 net_Accept
-net_AcceptSingle
 net_Connect
 net_ConnectDgram
 net_ConnectTCP
diff --git a/src/network/io.c b/src/network/io.c
index a35e0767a9..6e9097d635 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -340,7 +340,7 @@ void net_ListenClose(int *fds)
     }
 }
 
-int net_AcceptSingle(vlc_object_t *obj, int lfd)
+static int net_AcceptSingle(vlc_object_t *obj, int lfd)
 {
     int fd = vlc_accept(lfd, NULL, NULL, true);
     if (fd == -1)



More information about the vlc-commits mailing list