]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-shell/bind.c
Update forkandexec() prototype.
[openldap] / servers / slapd / back-shell / bind.c
index ac1ab4e9828b403c90946e6ad5ea3fc75dc4cb73..93ef4d869a177b225d16d01a2c55f7636bb99157 100644 (file)
@@ -17,21 +17,24 @@ shell_back_bind(
     Operation          *op,
     char               *dn,
     int                        method,
-    struct berval      *cred
+    struct berval      *cred,
+       char            **edn
 )
 {
        struct shellinfo        *si = (struct shellinfo *) be->be_private;
        FILE                    *rfp, *wfp;
        int                     rc;
 
+       *edn = NULL;
+
        if ( si->si_bind == NULL ) {
                send_ldap_result( conn, op, LDAP_UNWILLING_TO_PERFORM, NULL,
                    "bind not implemented" );
                return( -1 );
        }
 
-       if ( (op->o_private = forkandexec( si->si_bind, &rfp, &wfp ))
-           == -1 ) {
+       if ( (op->o_private = (void *) forkandexec( si->si_bind, &rfp, &wfp ))
+           == (void *) -1 ) {
                send_ldap_result( conn, op, LDAP_OPERATIONS_ERROR, NULL,
                    "could not fork/exec" );
                return( -1 );