From 27f7aa5b54bc4f2d957c73e71ac36ad0bc4247c5 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 14 Jan 2005 05:10:23 +0000 Subject: [PATCH] Minor cleanup --- servers/slapd/ldapsync.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/servers/slapd/ldapsync.c b/servers/slapd/ldapsync.c index 1d34c9e891..5ecf2590f7 100644 --- a/servers/slapd/ldapsync.c +++ b/servers/slapd/ldapsync.c @@ -27,12 +27,8 @@ #include "../../libraries/liblber/lber-int.h" /* get ber_strndup() */ #include "lutil_ldap.h" -#if 0 -struct sync_cookie *slap_sync_cookie = NULL; -#else struct slap_sync_cookie_s slap_sync_cookie = LDAP_STAILQ_HEAD_INITIALIZER( slap_sync_cookie ); -#endif void slap_compose_sync_cookie( @@ -43,7 +39,7 @@ slap_compose_sync_cookie( { char cookiestr[ LDAP_LUTIL_CSNSTR_BUFSIZE + 20 ]; - if ( csn->bv_val == NULL ) { + if ( BER_BVISNULL( csn )) { if ( rid == -1 ) { cookiestr[0] = '\0'; } else { -- 2.39.5