Commit 68b76a9c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Complete(?) migration to net_strerror/net_errno

for nicer Win32 error messages
parent 5cdd8862
......@@ -2416,11 +2416,7 @@ static void httpd_HostThread( httpd_host_t *host )
if( (i_ret == -1) && (errno != EINTR) )
{
#if defined(WIN32) || defined(UNDER_CE)
msg_Warn( host, "cannot select sockets (%d)", WSAGetLastError( ) );
#else
msg_Warn( host, "cannot select sockets : %s", strerror( errno ) );
#endif
msg_Warn( host, "select error: %s", net_strerror( net_errno ) );
msleep( 1000 );
continue;
}
......
......@@ -365,11 +365,7 @@ int __net_Write( vlc_object_t *p_this, int fd, const v_socket_t *p_vs,
if( i_ret < 0 )
{
#if defined(WIN32) || defined(UNDER_CE)
msg_Err( p_this, "network selection error (%d)", WSAGetLastError() );
#else
msg_Err( p_this, "network selection error (%s)", strerror(errno) );
#endif
msg_Err( p_this, "network error: %s", net_strerror(net_errno) );
return i_total > 0 ? i_total : -1;
}
......
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