really put SLAPI behind its #ifdef

This commit is contained in:
Kurt Zeilenga 2003-02-07 19:06:15 +00:00
parent 5192938964
commit 2fccb8d68e
7 changed files with 16 additions and 6 deletions

View file

@ -687,9 +687,9 @@ backend_unbind(
)
{
int i;
#if defined( LDAP_SLAPI )
Slapi_PBlock *pb = op->o_pb;
#if defined( LDAP_SLAPI )
int rc;
slapi_x_connection_set_pb( pb, conn );
slapi_x_operation_set_pb( pb, op );

View file

@ -49,7 +49,9 @@ do_bind(
struct berval cred = { 0, NULL };
Backend *be = NULL;
#ifdef LDAP_SLAPI
Slapi_PBlock *pb = op->o_pb;
#endif
#ifdef NEW_LOGGING
LDAP_LOG( OPERATION, ENTRY, "do_bind: conn %d\n", conn->c_connid, 0, 0 );

View file

@ -49,7 +49,9 @@ do_compare(
const char *text = NULL;
int manageDSAit;
#ifdef LDAP_SLAPI
Slapi_PBlock *pb = op->o_pb;
#endif
ava.aa_desc = NULL;

View file

@ -40,7 +40,9 @@ do_delete(
int rc;
int manageDSAit;
#ifdef LDAP_SLAPI
Slapi_PBlock *pb = op->o_pb;
#endif
#ifdef NEW_LOGGING
LDAP_LOG( OPERATION, ENTRY,

View file

@ -42,17 +42,17 @@ do_modify(
ber_len_t len;
Modifications *modlist = NULL;
Modifications **modtail = &modlist;
#ifdef LDAP_SLAPI
LDAPMod **modv = NULL;
#endif
#ifdef LDAP_DEBUG
Modifications *tmp;
#endif
#ifdef LDAP_SLAPI
LDAPMod **modv = NULL;
Slapi_PBlock *pb = op->o_pb;
#endif
Backend *be;
int rc;
const char *text;
int manageDSAit;
Slapi_PBlock *pb = op->o_pb;
#ifdef NEW_LOGGING
LDAP_LOG( OPERATION, ENTRY, "do_modify: enter\n", 0, 0, 0 );

View file

@ -65,7 +65,9 @@ do_modrdn(
const char *text;
int manageDSAit;
#ifdef LDAP_SLAPI
Slapi_PBlock *pb = op->o_pb;
#endif
#ifdef NEW_LOGGING
LDAP_LOG( OPERATION, ENTRY, "do_modrdn: begin\n", 0, 0, 0 );

View file

@ -10,6 +10,8 @@
* without express or implied warranty.
*/
#ifdef LDAP_SLAPI /* SLAPI is OPTIONAL */
#ifndef _SLAPI_H
#define _SLAPI_H
@ -526,4 +528,4 @@ LDAP_END_DECL
#include "proto-slapi.h"
#endif /* _SLAPI_H */
#endif /* LDAP_SLAPI */