]> git.sesse.net Git - vlc/commitdiff
Fix invalid abusive pointer usage (heck, there was a warning!)
authorRémi Denis-Courmont <rem@videolan.org>
Fri, 8 Apr 2005 20:01:59 +0000 (20:01 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Fri, 8 Apr 2005 20:01:59 +0000 (20:01 +0000)
src/misc/net.c

index 5a7aaab3ee10bf6d5864031578c01d63786b43f3..40a276061009b8b5bba9a950759b57332fafbbf2 100644 (file)
@@ -95,7 +95,7 @@ int net_ConvertIPv4( uint32_t *p_addr, const char * psz_address )
         /* Try to convert address directly from in_addr - this will work if
          * psz_address is dotted decimal. */
 #ifdef HAVE_ARPA_INET_H
-        if( !inet_aton( psz_address, &p_addr ) )
+        if( !inet_aton( psz_address, (struct in_addr *)p_addr ) )
 #else
         *p_addr = inet_addr( psz_address );
         if( *p_addr == INADDR_NONE )