From 909f5e6ae9a15becc0a48ca467284983d3621431 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 2 Apr 2006 16:38:46 +0000 Subject: [PATCH] Cast %ld format arg to long --- servers/slapd/back-monitor/conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5