Skip to content
Snippets Groups Projects
Commit a81ac86b authored by Steve Lhomme's avatar Steve Lhomme
Browse files

network: don't use net_errno to log poll() errors

poll(), vlc_poll() and vlc_poll_i11e() set errno, not net_errno
parent 675ff909
No related branches found
No related tags found
1 merge request!2496network: fix win32 errno usage with poll
Pipeline #259894 passed with stage
in 21 minutes and 9 seconds
......@@ -180,8 +180,7 @@ int (net_Connect)(vlc_object_t *obj, const char *host, int serv,
switch (val)
{
case -1: /* error */
msg_Err(obj, "polling error: %s",
vlc_strerror_c(net_errno));
msg_Err(obj, "polling error: %s", vlc_strerror_c(errno));
goto next_ai;
case 0: /* timeout */
......@@ -327,7 +326,7 @@ int net_Accept(vlc_object_t *obj, int *fds)
{
if (errno != EINTR)
{
msg_Err(obj, "poll error: %s", vlc_strerror_c(net_errno));
msg_Err(obj, "poll error: %s", vlc_strerror_c(errno));
return -1;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment