]> git.sur5r.net Git - openldap/blobdiff - libraries/liblber/nt_err.c
Move schema needed by slapd to core.schema so that only one file
[openldap] / libraries / liblber / nt_err.c
index 78f5aa0cfb64aab45adc5b5380969efe15684fdf..45de02c8be38ae5361d3019b9f97d88e480ac5a2 100644 (file)
@@ -1,4 +1,8 @@
 /* $OpenLDAP$ */
+/*
+ * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+ */
 #include "portable.h"
 
 #ifdef HAVE_WINSOCK2
@@ -7,6 +11,7 @@
 #include <winsock.h>
 #endif /* HAVE_WINSOCK(2) */
 
+#undef __RETSTR
 #define __RETSTR( x ) case x: return #x;
 
 char *ber_pvt_wsa_err2string( int err )
@@ -79,34 +84,5 @@ char *ber_pvt_wsa_err2string( int err )
                __RETSTR( WSANO_RECOVERY )
                __RETSTR( WSANO_DATA )
        }
-       return "unknown";
-}
-
-#undef __RETSTR
-
-#if 0  /* No one seems to be using these */
-char *ber_pvt_wsa_last_errstring( void )
-{
-       return ber_pvt_wsa_err2string( WSAGetLastError() );
-}
-
-#include <windows.h>
-
-char *GetErrorString( int err )
-{
-       static char msgBuf[1024];
-
-       FormatMessage(
-               FORMAT_MESSAGE_FROM_SYSTEM,
-               NULL,
-               err, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
-               msgBuf, 1024, NULL );
-
-       return msgBuf;
-}
-
-char *GetLastErrorString( void )
-{
-       return GetErrorString( GetLastError() );
-}
-#endif
+       return "unknown WSA error";
+}
\ No newline at end of file