From: Hallvard Furuseth Date: Sun, 2 Apr 2006 16:38:46 +0000 (+0000) Subject: Cast %ld format arg to long X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~52 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=909f5e6ae9a15becc0a48ca467284983d3621431;p=openldap Cast %ld format arg to long --- diff --git a/servers/slapd/back-monitor/conn.c b/servers/slapd/back-monitor/conn.c index 24c68396eb..f34f215b9a 100644 --- a/servers/slapd/back-monitor/conn.c +++ b/servers/slapd/back-monitor/conn.c @@ -353,7 +353,7 @@ conn_create( bv.bv_len = snprintf( buf, sizeof( buf ), "%lu", c->c_connid ); attr_merge_one( e, mi->mi_ad_monitorConnectionNumber, &bv, NULL ); - bv.bv_len = snprintf( buf, sizeof( buf ), "%ld", c->c_protocol ); + bv.bv_len = snprintf( buf, sizeof( buf ), "%ld", (long) c->c_protocol ); attr_merge_one( e, mi->mi_ad_monitorConnectionProtocol, &bv, NULL ); bv.bv_len = snprintf( buf, sizeof( buf ), "%ld", c->c_n_ops_received );