Some minor cleanup

This commit is contained in:
Kurt Zeilenga 2001-05-19 23:08:11 +00:00
parent deb9644a8a
commit 5fb80ea565

View File

@ -84,9 +84,9 @@
# if SD_BOTH # if SD_BOTH
# define tcp_close( s ) (shutdown( s, SD_BOTH ), closesocket( s )) # define tcp_close( s ) (shutdown( s, SD_BOTH ), closesocket( s ))
#else # else
# define tcp_close( s ) closesocket( s ) # define tcp_close( s ) closesocket( s )
#endif # endif
#define EWOULDBLOCK WSAEWOULDBLOCK #define EWOULDBLOCK WSAEWOULDBLOCK
#define EINPROGRESS WSAEINPROGRESS #define EINPROGRESS WSAEINPROGRESS
@ -130,16 +130,16 @@ LBER_F( char * ) ber_pvt_wsa_err2string LDAP_P((int));
# if SHUT_RDWR # if SHUT_RDWR
# define tcp_close( s ) (shutdown( s, SHUT_RDWR ), close( s )) # define tcp_close( s ) (shutdown( s, SHUT_RDWR ), close( s ))
#else # else
# define tcp_close( s ) close( s ) # define tcp_close( s ) close( s )
#endif # endif
#ifdef HAVE_PIPE #ifdef HAVE_PIPE
/* /*
* Only use pipe() on systems where file and socket descriptors * Only use pipe() on systems where file and socket descriptors
* are interchangable * are interchangable
*/ */
#define USE_PIPE HAVE_PIPE # define USE_PIPE HAVE_PIPE
#endif #endif
#endif /* MACOS */ #endif /* MACOS */
@ -156,7 +156,7 @@ LBER_F( char * ) ber_pvt_wsa_err2string LDAP_P((int));
#endif #endif
#if !defined( HAVE_INET_ATON ) && !defined( inet_aton ) #if !defined( HAVE_INET_ATON ) && !defined( inet_aton )
#define inet_aton ldap_pvt_inet_aton # define inet_aton ldap_pvt_inet_aton
struct in_addr; struct in_addr;
LDAP_F (int) ldap_pvt_inet_aton LDAP_P(( const char *, struct in_addr * )); LDAP_F (int) ldap_pvt_inet_aton LDAP_P(( const char *, struct in_addr * ));
#endif #endif