[vlc-commits] network: net_Listen() doesn't accept a negative port
Steve Lhomme
git at videolan.org
Wed Jul 11 15:35:16 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jul 11 14:48:56 2018 +0200| [bb1c8e8e419c8f6d89b39a68c6c14cea587b6f95] | committer: Steve Lhomme
network: net_Listen() doesn't accept a negative port
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bb1c8e8e419c8f6d89b39a68c6c14cea587b6f95
---
include/vlc_network.h | 2 +-
src/network/io.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/vlc_network.h b/include/vlc_network.h
index 184c23acae..eb6a93aa51 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -124,7 +124,7 @@ int net_Socket (vlc_object_t *obj, int family, int socktype, int proto);
VLC_API int net_Connect(vlc_object_t *p_this, const char *psz_host, int i_port, int socktype, int protocol);
#define net_Connect(a, b, c, d, e) net_Connect(VLC_OBJECT(a), b, c, d, e)
-VLC_API int * net_Listen(vlc_object_t *p_this, const char *psz_host, int i_port, int socktype, int protocol);
+VLC_API int * net_Listen(vlc_object_t *p_this, const char *psz_host, unsigned i_port, int socktype, int protocol);
#define net_ListenTCP(a, b, c) net_Listen(VLC_OBJECT(a), b, c, \
SOCK_STREAM, IPPROTO_TCP)
diff --git a/src/network/io.c b/src/network/io.c
index 0e6bc1be2c..33fa12ba66 100644
--- a/src/network/io.c
+++ b/src/network/io.c
@@ -104,7 +104,7 @@ int net_Socket (vlc_object_t *p_this, int family, int socktype,
int *net_Listen (vlc_object_t *p_this, const char *psz_host,
- int i_port, int type, int protocol)
+ unsigned i_port, int type, int protocol)
{
struct addrinfo hints = {
.ai_socktype = type,
More information about the vlc-commits
mailing list