Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
e0256967
Commit
e0256967
authored
Jan 23, 2008
by
Rémi Denis-Courmont
Browse files
avoid mere whitespaces when hostname is not specified
parent
a3378e81
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/network/udp.c
View file @
e0256967
...
...
@@ -623,12 +623,12 @@ int __net_ConnectDgram( vlc_object_t *p_this, const char *psz_host, int i_port,
memset
(
&
hints
,
0
,
sizeof
(
hints
)
);
hints
.
ai_socktype
=
SOCK_DGRAM
;
msg_Dbg
(
p_this
,
"net: connecting to %s
port
%d"
,
psz_host
,
i_port
);
msg_Dbg
(
p_this
,
"net: connecting to
[
%s
]:
%d"
,
psz_host
,
i_port
);
i_val
=
vlc_getaddrinfo
(
p_this
,
psz_host
,
i_port
,
&
hints
,
&
res
);
if
(
i_val
)
{
msg_Err
(
p_this
,
"cannot resolve %s
port
%d : %s"
,
psz_host
,
i_port
,
msg_Err
(
p_this
,
"cannot resolve
[
%s
]:
%d : %s"
,
psz_host
,
i_port
,
vlc_gai_strerror
(
i_val
)
);
return
-
1
;
}
...
...
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