[vlc-commits] win32: remove unused net_strerror()

Rémi Denis-Courmont git at videolan.org
Sun Dec 29 16:13:06 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Dec 29 17:12:19 2013 +0200| [e4980cf96f4b8c9cb0a189f02eb7dfbae0125cf1] | committer: Rémi Denis-Courmont

win32: remove unused net_strerror()

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e4980cf96f4b8c9cb0a189f02eb7dfbae0125cf1
---

 include/vlc_network.h |    1 -
 src/win32/winsock.c   |   10 ----------
 2 files changed, 11 deletions(-)

diff --git a/include/vlc_network.h b/include/vlc_network.h
index d438642..d1c63b1 100644
--- a/include/vlc_network.h
+++ b/include/vlc_network.h
@@ -38,7 +38,6 @@
 #   include <winsock2.h>
 #   include <ws2tcpip.h>
 #   define net_errno (WSAGetLastError())
-extern const char *net_strerror( int val );
 
 struct iovec
 {
diff --git a/src/win32/winsock.c b/src/win32/winsock.c
index ee24a20..92822ae 100644
--- a/src/win32/winsock.c
+++ b/src/win32/winsock.c
@@ -23,18 +23,8 @@
 #endif
 
 #include <vlc_common.h>
-#include <errno.h>
 #include <vlc_network.h>
 
-const char *net_strerror( int value )
-{
-    /* There doesn't seem to be any portable error message generation for
-     * Winsock errors. Some old versions had s_error, but it appears to be
-     * gone, and is not documented.
-     */
-    return vlc_strerror(value);
-}
-
 #if 0
 ssize_t vlc_sendmsg (int s, struct msghdr *hdr, int flags)
 {



More information about the vlc-commits mailing list