From: Kurt Zeilenga Date: Sat, 31 May 2003 05:48:00 +0000 (+0000) Subject: Misc cleanup (needs better error handling and general code cleanup) X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~958 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fefb7a97e412a1aa3b31d31e660f4d73763f9318;p=openldap Misc cleanup (needs better error handling and general code cleanup) --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 6f4eb6d04a..6bc0b045a9 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -524,7 +524,7 @@ do_syncrepl( ber_write( ctrl_ber, rctrlp->ldctl_value.bv_val, rctrlp->ldctl_value.bv_len, 0 ); ber_reset( ctrl_ber, 1 ); - ber_scanf( ctrl_ber, "{" ); + ber_scanf( ctrl_ber, "{" /*"}"*/); if ( ber_peek_tag( ctrl_ber, &len ) == LDAP_SYNC_TAG_COOKIE ) { ber_scanf( ctrl_ber, "o", &syncCookie ); @@ -562,7 +562,7 @@ do_syncrepl( if ( !rc && !strcmp( retoid, LDAP_SYNC_INFO ) ) { sync_info_arrived = 1; res_ber = ber_init( retdata ); - ber_scanf( res_ber, "{e", &syncstate ); + ber_scanf( res_ber, "{e" /*"}"*/, &syncstate ); if ( syncstate == LDAP_SYNC_REFRESH_DONE ) { syncrepl_del_nonpresent( ld, &op ); @@ -578,7 +578,7 @@ do_syncrepl( if ( ber_peek_tag( res_ber, &len ) == LDAP_SYNC_TAG_COOKIE ) { - ber_scanf( res_ber, "o}", &syncCookie ); + ber_scanf( res_ber, /*"{"*/ "o}", &syncCookie ); if ( syncCookie.bv_len ) { ber_bvfree( si->syncCookie ); si->syncCookie = ber_dupbv( NULL, &syncCookie );