Cast %ld format arg to long

This commit is contained in:
Hallvard Furuseth 2006-04-02 16:38:46 +00:00
parent b90c3d6fd3
commit 909f5e6ae9

View File

@ -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 );