[vlc-commits] network: privatize net_Subscribe()

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


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 10 11:43:19 2018 +0200| [98c85830b2786edf0a267395a35fb622206a9c0b] | committer: Rémi Denis-Courmont

network: privatize net_Subscribe()

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

 include/vlc_network.h | 3 ---
 src/network/udp.c     | 7 +++++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/vlc_network.h b/include/vlc_network.h
index ab53b42dba..9aa2f30909 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -172,9 +172,6 @@ static inline int net_ListenUDP1 (vlc_object_t *obj, const char *host, unsigned
 
 VLC_API void net_ListenClose( int *fd );
 
-int net_Subscribe (vlc_object_t *obj, int fd, const struct sockaddr *addr,
-                   socklen_t addrlen);
-
 VLC_API int net_SetCSCov( int fd, int sendcov, int recvcov );
 
 /**
diff --git a/src/network/udp.c b/src/network/udp.c
index 5dce1f9e9b..9246b9585b 100644
--- a/src/network/udp.c
+++ b/src/network/udp.c
@@ -138,6 +138,9 @@ static int net_SetupDgramSocket (vlc_object_t *p_obj, int fd,
     return fd;
 }
 
+static int net_Subscribe(vlc_object_t *obj, int fd,
+                         const struct sockaddr *addr, socklen_t addrlen);
+
 /* */
 static int net_ListenSingle (vlc_object_t *obj, const char *host, unsigned port,
                              int protocol)
@@ -390,8 +393,8 @@ net_SourceSubscribe (vlc_object_t *obj, int fd,
 }
 
 
-int net_Subscribe (vlc_object_t *obj, int fd,
-                   const struct sockaddr *grp, socklen_t grplen)
+static int net_Subscribe(vlc_object_t *obj, int fd,
+                         const struct sockaddr *grp, socklen_t grplen)
 {
 /* MCAST_JOIN_GROUP was introduced to OS X in v10.7, but it doesn't work,
  * so ignore it to use the same code as on 10.5 or 10.6 */



More information about the vlc-commits mailing list