Fix format errors: %d -> %ld, and add (long) casts as appropriate.

This commit is contained in:
Hallvard Furuseth 2003-11-28 22:06:54 +00:00
parent 2448725f9a
commit 1fc24a3a82

View File

@ -299,7 +299,7 @@ do_syncrep1(
assert( si->si_rid < 1000 ); assert( si->si_rid < 1000 );
syncrepl_cn_bv.bv_val = syncrepl_cbuf; syncrepl_cn_bv.bv_val = syncrepl_cbuf;
syncrepl_cn_bv.bv_len = snprintf(syncrepl_cbuf, sizeof(syncrepl_cbuf), syncrepl_cn_bv.bv_len = snprintf(syncrepl_cbuf, sizeof(syncrepl_cbuf),
CN_STR "syncrepl%d", si->si_rid ); CN_STR "syncrepl%ld", si->si_rid );
build_new_dn( &op->o_req_ndn, psub, &syncrepl_cn_bv, op->o_tmpmemctx ); build_new_dn( &op->o_req_ndn, psub, &syncrepl_cn_bv, op->o_tmpmemctx );
op->o_req_dn = op->o_req_ndn; op->o_req_dn = op->o_req_ndn;
@ -667,12 +667,12 @@ do_syncrep2(
default: default:
#ifdef NEW_LOGGING #ifdef NEW_LOGGING
LDAP_LOG( OPERATION, ERR, LDAP_LOG( OPERATION, ERR,
"do_syncrep2 : unknown syncinfo tag (%d)\n", "do_syncrep2 : unknown syncinfo tag (%ld)\n",
si_tag, 0, 0 ); (long) si_tag, 0, 0 );
#else #else
Debug( LDAP_DEBUG_ANY, Debug( LDAP_DEBUG_ANY,
"do_syncrep2 : unknown syncinfo tag (%d)\n", "do_syncrep2 : unknown syncinfo tag (%ld)\n",
si_tag, 0, 0 ); (long) si_tag, 0, 0 );
#endif #endif
ldap_memfree( retoid ); ldap_memfree( retoid );
ber_bvfree( retdata ); ber_bvfree( retdata );
@ -1481,7 +1481,7 @@ syncrepl_updateCookie(
assert( si->si_rid < 1000 ); assert( si->si_rid < 1000 );
cnbva[0].bv_len = snprintf( cnbva[0].bv_val, cnbva[0].bv_len = snprintf( cnbva[0].bv_val,
slap_syncrepl_bvc.bv_len, slap_syncrepl_bvc.bv_len,
"syncrepl%d", si->si_rid ); "syncrepl%ld", si->si_rid );
mod = (Modifications *) ch_calloc( 1, sizeof( Modifications )); mod = (Modifications *) ch_calloc( 1, sizeof( Modifications ));
mod->sml_op = LDAP_MOD_REPLACE; mod->sml_op = LDAP_MOD_REPLACE;
mod->sml_desc = slap_schema.si_ad_cn; mod->sml_desc = slap_schema.si_ad_cn;
@ -1534,7 +1534,7 @@ syncrepl_updateCookie(
assert( si->si_rid < 1000 ); assert( si->si_rid < 1000 );
slap_syncrepl_cn_bv.bv_len = snprintf( slap_syncrepl_cn_bv.bv_val, slap_syncrepl_cn_bv.bv_len = snprintf( slap_syncrepl_cn_bv.bv_val,
slap_syncrepl_cn_bvc.bv_len, slap_syncrepl_cn_bvc.bv_len,
"cn=syncrepl%d", si->si_rid ); "cn=syncrepl%ld", si->si_rid );
build_new_dn( &slap_syncrepl_dn_bv, pdn, &slap_syncrepl_cn_bv, build_new_dn( &slap_syncrepl_dn_bv, pdn, &slap_syncrepl_cn_bv,
op->o_tmpmemctx ); op->o_tmpmemctx );