From 3955eaede25c82723bb350a74d6a658dda2195ab Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 5 Mar 2003 02:22:58 +0000 Subject: [PATCH] Fix LDAP_DEBUG/LDAP_SYSLOG test --- servers/slapd/modify.c | 2 +- servers/slapd/slap.h | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index 885066970e..00e91a3767 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -276,7 +276,6 @@ do_modify( } #endif } -#endif if ( StatslogTest( LDAP_DEBUG_STATS ) ) { char abuf[BUFSIZ/2], *ptr = abuf; @@ -304,6 +303,7 @@ do_modify( op->o_connid, op->o_opid, abuf, 0, 0 ); } } +#endif /* LDAP_DEBUG */ manageDSAit = get_manageDSAit( op ); diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 217d7c44af..4f75559736 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -2036,14 +2036,6 @@ typedef struct slap_conn { fprintf( stderr, (fmt), (connid), (opid), (arg1), (arg2), (arg3) );\ } while (0) #define StatslogTest( level ) (ldap_debug & (level)) -#elif defined(LDAP_SYSLOG) -#define Statslog( level, fmt, connid, opid, arg1, arg2, arg3 ) \ - do { \ - if ( ldap_syslog & (level) ) \ - syslog( ldap_syslog_level, (fmt), (connid), (opid), (arg1), \ - (arg2), (arg3) ); \ - } while (0) -#define StatslogTest( level ) (ldap_syslog & (level)) #else #define Statslog( level, fmt, connid, opid, arg1, arg2, arg3 ) #define StatslogTest( level ) (0) -- 2.39.5