From: Kurt Zeilenga Date: Wed, 18 Oct 2000 03:24:50 +0000 (+0000) Subject: fix SOCKET_ERROR typos X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1705 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ffe1320bf5bc90f0bfeff905ed81a87ae3abb0b5;p=openldap fix SOCKET_ERROR typos --- diff --git a/libraries/libldap/os-ip.c b/libraries/libldap/os-ip.c index 49f5a15a32..b58962607a 100644 --- a/libraries/libldap/os-ip.c +++ b/libraries/libldap/os-ip.c @@ -152,7 +152,7 @@ ldap_pvt_is_socket_ready(LDAP *ld, int s) int so_errno; int dummy = sizeof(so_errno); if ( getsockopt( s, SOL_SOCKET, SO_ERROR, &so_errno, &dummy ) - == SOCKET_ERROR ) + == AC_SOCKET_ERROR ) { return -1; } @@ -170,7 +170,7 @@ ldap_pvt_is_socket_ready(LDAP *ld, int s) char ch; int dummy = sizeof(sin); if ( getpeername( s, (struct sockaddr *) &sin, &dummy ) - == SOCKET_ERROR ) + == AC_SOCKET_ERROR ) { /* XXX: needs to be replace with ber_stream_read() */ read(s, &ch, 1); @@ -209,7 +209,7 @@ ldap_pvt_connect(LDAP *ld, ber_socket_t s, if ( ldap_pvt_ndelay_on(ld, s) == -1 ) return ( -1 ); - if ( connect(s, sin, addrlen) != SOCKET_ERROR ) + if ( connect(s, sin, addrlen) != AC_SOCKET_ERROR ) { if ( ldap_pvt_ndelay_off(ld, s) == -1 ) return ( -1 ); @@ -242,7 +242,7 @@ ldap_pvt_connect(LDAP *ld, ber_socket_t s, #else z, #endif - opt_tv ? &tv : NULL) == SOCKET_ERROR ) + opt_tv ? &tv : NULL) == AC_SOCKET_ERROR ) { return ( -1 ); } diff --git a/libraries/libldap/os-local.c b/libraries/libldap/os-local.c index f05ceb6cb2..039a266913 100644 --- a/libraries/libldap/os-local.c +++ b/libraries/libldap/os-local.c @@ -99,7 +99,7 @@ ldap_pvt_is_socket_ready(LDAP *ld, int s) int so_errno; int dummy = sizeof(so_errno); if ( getsockopt( s, SOL_SOCKET, SO_ERROR, &so_errno, &dummy ) - == SOCKET_ERROR ) + == AC_SOCKET_ERROR ) { return -1; } @@ -117,7 +117,7 @@ ldap_pvt_is_socket_ready(LDAP *ld, int s) char ch; int dummy = sizeof(sa); if ( getpeername( s, (struct sockaddr *) &sa, &dummy ) - == SOCKET_ERROR ) + == AC_SOCKET_ERROR ) { /* XXX: needs to be replace with ber_stream_read() */ read(s, &ch, 1); @@ -149,7 +149,7 @@ ldap_pvt_connect(LDAP *ld, ber_socket_t s, struct sockaddr_un *sa, int async) return ( -1 ); if ( connect(s, (struct sockaddr *) sa, sizeof(struct sockaddr_un)) - != SOCKET_ERROR ) + != AC_SOCKET_ERROR ) { if ( ldap_pvt_ndelay_off(ld, s) == -1 ) { return ( -1 ); @@ -169,7 +169,7 @@ ldap_pvt_connect(LDAP *ld, ber_socket_t s, struct sockaddr_un *sa, int async) FD_SET(s, &wfds ); if ( select(ldap_int_tblsize, z, &wfds, z, opt_tv ? &tv : NULL) - == SOCKET_ERROR ) + == AC_SOCKET_ERROR ) { return ( -1 ); }