Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
9ab66680
Commit
9ab66680
authored
Apr 08, 2005
by
Rémi Denis-Courmont
Browse files
Fix invalid abusive pointer usage (heck, there was a warning!)
parent
fd693f38
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/misc/net.c
View file @
9ab66680
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment