return -1;
}
- if ( (op->o_private = (void *) forkandexec( si->si_add, &rfp, &wfp )) == (void *) -1 ) {
+ if ( forkandexec( si->si_add, &rfp, &wfp ) == (pid_t)-1 ) {
send_ldap_error( op, rs, LDAP_OTHER,
"could not fork/exec" );
return( -1 );
return -1;
}
- if ( (op->o_private = (void *) forkandexec( si->si_bind, &rfp, &wfp ))
- == (void *) -1 ) {
+ if ( forkandexec( si->si_bind, &rfp, &wfp ) == (pid_t)-1 ) {
send_ldap_error( op, rs, LDAP_OTHER,
"could not fork/exec" );
return( -1 );
return -1;
}
- if ( (op->o_private = (void *) forkandexec( si->si_compare, &rfp, &wfp ))
- == (void *) -1 ) {
+ if ( forkandexec( si->si_compare, &rfp, &wfp ) == (pid_t)-1 ) {
send_ldap_error( op, rs, LDAP_OTHER,
"could not fork/exec" );
return( -1 );
return -1;
}
- if ( (op->o_private = (void *) forkandexec( si->si_delete, &rfp, &wfp ))
- == (void *) -1 ) {
+ if ( forkandexec( si->si_delete, &rfp, &wfp ) == (pid_t)-1 ) {
send_ldap_error( op, rs, LDAP_OTHER,
"could not fork/exec" );
return( -1 );
return -1;
}
- if ( (op->o_private = (void *) forkandexec( si->si_modify, &rfp, &wfp ))
- == (void *) -1 ) {
+ if ( forkandexec( si->si_modify, &rfp, &wfp ) == (pid_t)-1 ) {
send_ldap_error( op, rs, LDAP_OTHER,
"could not fork/exec" );
return( -1 );
return -1;
}
- if ( (op->o_private = (void *) forkandexec( si->si_modrdn, &rfp, &wfp ))
- == (void *) -1 ) {
+ if ( forkandexec( si->si_modrdn, &rfp, &wfp ) == (pid_t)-1 ) {
send_ldap_error( op, rs, LDAP_OTHER,
"could not fork/exec" );
return( -1 );
return( -1 );
}
- if ( (op->o_private = (void *) forkandexec( si->si_search, &rfp, &wfp ))
- == (void *) -1 ) {
+ if ( forkandexec( si->si_search, &rfp, &wfp ) == (pid_t)-1 ) {
send_ldap_error( op, rs, LDAP_OTHER,
"could not fork/exec" );
return( -1 );
return 0;
}
- if ( (op->o_private = (void *) forkandexec( si->si_unbind, &rfp, &wfp ))
- == (void *) -1 ) {
+ if ( forkandexec( si->si_unbind, &rfp, &wfp ) == (pid_t)-1 ) {
return 0;
}