[vlc-commits] network: remove unused net_GetPort()
Rémi Denis-Courmont
git at videolan.org
Sun Nov 11 16:33:31 CET 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov 10 11:31:14 2018 +0200| [d0da52d96b75e6a054445056ffcddd44e0c0b40e] | committer: Rémi Denis-Courmont
network: remove unused net_GetPort()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d0da52d96b75e6a054445056ffcddd44e0c0b40e
---
include/vlc_network.h | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/include/vlc_network.h b/include/vlc_network.h
index 055f2bcf8a..4e601fd75d 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -287,20 +287,6 @@ static inline int net_GetPeerAddress( int fd, char *address, int *port )
? VLC_EGENERIC : 0;
}
-static inline uint16_t net_GetPort (const struct sockaddr *addr)
-{
- switch (addr->sa_family)
- {
-#ifdef AF_INET6
- case AF_INET6:
- return ((const struct sockaddr_in6 *)addr)->sin6_port;
-#endif
- case AF_INET:
- return ((const struct sockaddr_in *)addr)->sin_port;
- }
- return 0;
-}
-
static inline void net_SetPort (struct sockaddr *addr, uint16_t port)
{
switch (addr->sa_family)
More information about the vlc-commits
mailing list