]> git.sur5r.net Git - openldap/commitdiff
Cast %ld format arg to long
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 2 Apr 2006 16:38:46 +0000 (16:38 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 2 Apr 2006 16:38:46 +0000 (16:38 +0000)
servers/slapd/back-monitor/conn.c

index 24c68396eb5896fe1b71b5c8656f22836f19a505..f34f215b9ae4104502079aae09cf80df18a45800 100644 (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 );