From: RĂ©mi Denis-Courmont Date: Fri, 8 Sep 2006 19:00:04 +0000 (+0000) Subject: Complete(?) migration to net_strerror/net_errno X-Git-Tag: 0.9.0-test0~10378 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=68b76a9c2818db636384729d67698fca58a615d2;p=vlc Complete(?) migration to net_strerror/net_errno for nicer Win32 error messages --- diff --git a/src/network/httpd.c b/src/network/httpd.c index 8b7c883836..bd01fa1c63 100644 --- a/src/network/httpd.c +++ b/src/network/httpd.c @@ -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; } diff --git a/src/network/io.c b/src/network/io.c index 2e4a2addca..48cc78fba9 100644 --- a/src/network/io.c +++ b/src/network/io.c @@ -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; }