[vlc-commits] dsm: use inet_pton iso inet_aton

Jean-Baptiste Kempf git at videolan.org
Mon May 16 11:45:42 CEST 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon May 16 11:43:59 2016 +0200| [9a0bac903a95adc35e04f88d940b70cdfd738793] | committer: Jean-Baptiste Kempf

dsm: use inet_pton iso inet_aton

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

 modules/access/dsm/access.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/dsm/access.c b/modules/access/dsm/access.c
index d047c36..bac034b 100644
--- a/modules/access/dsm/access.c
+++ b/modules/access/dsm/access.c
@@ -228,7 +228,7 @@ static int get_address( access_t *p_access )
 {
     access_sys_t *p_sys = p_access->p_sys;
 
-    if( !inet_aton( p_sys->url.psz_host, &p_sys->addr ) )
+    if( !inet_pton( AF_INET, p_sys->url.psz_host, &p_sys->addr ) )
     {
         /* This is not an ip address, let's try netbios/dns resolve */
         struct addrinfo *p_info = NULL;



More information about the vlc-commits mailing list