]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/modify.c
Preliminary Make rules to allow building backends as modules.
[openldap] / servers / slapd / back-shell / modify.c
index 3fee57bff8f28b5d5374f15985accaba2b539399..ebaa3f10e960246e5935060bdd5a7b9fa8218e73 100644 (file)
@@ -25,14 +25,14 @@ shell_back_modify(
 
        if ( si->si_modify == NULL ) {
                send_ldap_result( conn, op, LDAP_UNWILLING_TO_PERFORM, NULL,
-                   "modify not implemented" );
+                   "modify not implemented", NULL, NULL );
                return( -1 );
        }
 
-       if ( (op->o_private = forkandexec( si->si_modify, &rfp, &wfp ))
-           == -1 ) {
+       if ( (op->o_private = (void *) forkandexec( si->si_modify, &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 );
        }