]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/search.c
Preliminary Make rules to allow building backends as modules.
[openldap] / servers / slapd / back-shell / search.c
index ded0b2f5fcc2851f73d5c8d503ddcbecfb2c015b..6f2bbb8d74fb58905ce2e25901778b7e992b7074 100644 (file)
@@ -34,14 +34,14 @@ shell_back_search(
 
        if ( si->si_search == NULL ) {
                send_ldap_result( conn, op, LDAP_UNWILLING_TO_PERFORM, NULL,
-                   "search not implemented" );
+                   "search not implemented", NULL, NULL );
                return( -1 );
        }
 
-       if ( (op->o_private = forkandexec( si->si_search, &rfp, &wfp ))
-           == -1 ) {
+       if ( (op->o_private = (void *) forkandexec( si->si_search, &rfp, &wfp ))
+           == (void *) -1 ) {
                send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR, NULL,
-                   "could not fork/exec" );
+                   "could not fork/exec", NULL, NULL );
                return( -1 );
        }