]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Moved nt_err from liblutil to liblber, renamed WSAGetErrorString to
authorHoward Chu <hyc@openldap.org>
Fri, 12 May 2000 21:16:15 +0000 (21:16 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 12 May 2000 21:16:15 +0000 (21:16 +0000)
ber_pvt_wsa_err2string.

include/ac/socket.h
libraries/liblber/Makefile.in
libraries/liblber/nt_err.c [moved from libraries/liblutil/nt_err.c with 92% similarity]
libraries/liblutil/Makefile.in

index 5e20569f54f6f3bf115464232413577a7857501a..c1a00456bf049e9503562e6999e7ed0e6a99aa24 100644 (file)
@@ -90,9 +90,9 @@
 #undef sock_errno
 #undef sock_errstr
 #define        sock_errno()    WSAGetLastError()
-#define        sock_errstr(e)  WSAGetErrorString(e)
+#define        sock_errstr(e)  ber_pvt_wsa_err2string(e)
 
-LIBLUTIL_F (char *) WSAGetErrorString LDAP_P((int));
+LIBLBER_F (char *) ber_pvt_wsa_err2string LDAP_P((int));
 
 #elif MACOS
 #      define tcp_close( s )           tcpclose( s )
index 227509f974f834ec67c3c0a74fc83ea973db8dee..3c087ae1f568110eb4f02fae9349eba6941bfd03 100644 (file)
@@ -8,10 +8,13 @@
 LIBRARY = liblber.la
 XLIBRARY = ../liblber.a
 
+NT_SRCS = nt_err.c
+NT_OBJS = nt_err.lo
+
 SRCS= assert.c decode.c encode.c io.c bprint.c \
-       memory.c options.c sockbuf.c
+       memory.c options.c sockbuf.c $(@PLAT@_SRCS)
 OBJS= assert.lo decode.lo encode.lo io.lo bprint.lo \
-       memory.lo options.lo sockbuf.lo
+       memory.lo options.lo sockbuf.lo $(@PLAT@_OBJS)
 XSRCS= version.c
 
 PROGRAMS= dtest etest idtest
similarity index 92%
rename from libraries/liblutil/nt_err.c
rename to libraries/liblber/nt_err.c
index 691c19caa61f89497d582de5c115c90c69c5ae67..adb7b973342f172d9062a4602c6729d18c9f81c0 100644 (file)
@@ -11,7 +11,7 @@
 
 #define __RETSTR( x ) case x: return #x;
 
-char *WSAGetErrorString( int err )
+char *ber_pvt_wsa_err2string( int err )
 {
        switch( err )
        {
@@ -84,13 +84,14 @@ char *WSAGetErrorString( int err )
        return "unknown";
 }
 
-char *WSAGetLastErrorString( void )
+#undef __RETSTR
+
+#if 0  /* No one seems to be using these */
+char *ber_pvt_wsa_last_errstring( void )
 {
-       return WSAGetErrorString( WSAGetLastError() );
+       return ber_pvt_wsa_err2string( WSAGetLastError() );
 }
 
-#undef __RETSTR
-
 char *GetErrorString( int err )
 {
        static char msgBuf[1024];
@@ -108,6 +109,4 @@ char *GetLastErrorString( void )
 {
        return GetErrorString( GetLastError() );
 }
-
-
-
+#endif
index 8aec16995fea57a9e40d3d173d48f2b851900a95..07cadf5838b3337f7873539812b45427fd585406 100644 (file)
@@ -5,8 +5,8 @@
 
 LIBRARY        = liblutil.a
 
-NT_SRCS = nt_err.c ntservice.c
-NT_OBJS = nt_err.o ntservice.o slapdmsg.res
+NT_SRCS = ntservice.c
+NT_OBJS = ntservice.o slapdmsg.res
 
 UNIX_SRCS = detach.c
 UNIX_OBJS = detach.o