From: Kurt Zeilenga Date: Sat, 19 May 2001 23:08:11 +0000 (+0000) Subject: Some minor cleanup X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1392 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5fb80ea5658610294c05475955754f14e636e660;p=openldap Some minor cleanup --- diff --git a/include/ac/socket.h b/include/ac/socket.h index 26af7a571a..ab48329e71 100644 --- a/include/ac/socket.h +++ b/include/ac/socket.h @@ -84,9 +84,9 @@ # if SD_BOTH # define tcp_close( s ) (shutdown( s, SD_BOTH ), closesocket( s )) -#else +# else # define tcp_close( s ) closesocket( s ) -#endif +# endif #define EWOULDBLOCK WSAEWOULDBLOCK #define EINPROGRESS WSAEINPROGRESS @@ -130,16 +130,16 @@ LBER_F( char * ) ber_pvt_wsa_err2string LDAP_P((int)); # if SHUT_RDWR # define tcp_close( s ) (shutdown( s, SHUT_RDWR ), close( s )) -#else -# define tcp_close( s ) close( s ) -#endif +# else +# define tcp_close( s ) close( s ) +# endif #ifdef HAVE_PIPE /* * Only use pipe() on systems where file and socket descriptors * are interchangable */ -#define USE_PIPE HAVE_PIPE +# define USE_PIPE HAVE_PIPE #endif #endif /* MACOS */ @@ -156,7 +156,7 @@ LBER_F( char * ) ber_pvt_wsa_err2string LDAP_P((int)); #endif #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; LDAP_F (int) ldap_pvt_inet_aton LDAP_P(( const char *, struct in_addr * )); #endif