Commit 9ab66680 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix invalid abusive pointer usage (heck, there was a warning!)

parent fd693f38
......@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment