From: Kurt Zeilenga Date: Thu, 8 Jun 2000 03:12:14 +0000 (+0000) Subject: ~ NULL was a bad idea. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2706 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=88848d3aea353524a567d97173ca5dc5d3f5f3ed;p=openldap ~ NULL was a bad idea. --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index f2029bb844..f3282c9c0b 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -435,10 +435,10 @@ long connection_init( #ifdef LDAP_DEBUG ber_sockbuf_add_io( c->c_sb, &ber_sockbuf_io_debug, INT_MAX, NULL ); #endif - if( ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_SET_NONBLOCK, ~ NULL ) < 0 ) { + if( ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_SET_NONBLOCK, c /* non-NULL */ ) < 0 ) { Debug( LDAP_DEBUG_ANY, "connection_init(%d, %s): set nonblocking failed\n", - s, c->c_peer_name,0 ); + s, c->c_peer_name, 0 ); } id = c->c_connid = conn_nextid++;