mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Minor cleanup
This commit is contained in:
parent
495c315672
commit
27f7aa5b54
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user