]> git.sur5r.net Git - openldap/commitdiff
~ NULL was a bad idea.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 8 Jun 2000 03:12:14 +0000 (03:12 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 8 Jun 2000 03:12:14 +0000 (03:12 +0000)
servers/slapd/connection.c

index f2029bb844b542ddb6827ae620705da26a76f56f..f3282c9c0b4c0863c8bf89c7d90a5c990b91b170 100644 (file)
@@ -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++;