Skip to content
Snippets Groups Projects
Commit 61be4bd0 authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

remove pointer v. int lint from ber_sockbuf_ctrl.

parent e68b429d
No related branches found
No related tags found
No related merge requests found
......@@ -92,8 +92,8 @@ ber_sockbuf_ctrl( Sockbuf *sb, int opt, void *arg )
ret = 1;
break;
case LBER_SB_OPT_SET_NONBLOCK:
ret = ( ber_pvt_socket_set_nonblock( sb->sb_fd,
(int)arg ) ? -1 : 1 );
ret = ber_pvt_socket_set_nonblock( sb->sb_fd, arg != NULL)
? -1 : 1;
break;
case LBER_SB_OPT_DRAIN:
/* Drain the data source to enable possible errors (e.g.
......
......@@ -435,7 +435,7 @@ 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, (void *)1 ) < 0 ) {
if( ber_sockbuf_ctrl( c->c_sb, LBER_SB_OPT_SET_NONBLOCK, ~ NULL ) < 0 ) {
Debug( LDAP_DEBUG_ANY,
"connection_init(%d, %s): set nonblocking failed\n",
s, c->c_peer_name,0 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment