]> git.sur5r.net Git - openldap/commitdiff
re-fix previus commit the other way 'round (rids are < 1000)
authorPierangelo Masarati <ando@openldap.org>
Sat, 24 Feb 2007 18:29:55 +0000 (18:29 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 24 Feb 2007 18:29:55 +0000 (18:29 +0000)
servers/slapd/syncrepl.c

index 8ad8e4774ffe74c5159ccb796673f4eff4416951..b35be8e150c784689db9fc938eb99374b8c65387 100644 (file)
@@ -3804,8 +3804,8 @@ syncrepl_unparse( syncinfo_t *si, struct berval *bv )
        si->si_bindconf.sb_version = LDAP_VERSION3;
 
        ptr = buf;
-       ptr += snprintf( ptr, WHATSLEFT, IDSTR "=%03ld " PROVIDERSTR "=%s",
-               (long)si->si_rid, si->si_bindconf.sb_uri.bv_val );
+       ptr += snprintf( ptr, WHATSLEFT, IDSTR "=%03d " PROVIDERSTR "=%s",
+               si->si_rid, si->si_bindconf.sb_uri.bv_val );
        if ( ptr - buf >= sizeof( buf ) ) return;
        if ( !BER_BVISNULL( &bc ) ) {
                if ( WHATSLEFT <= bc.bv_len ) {