From: Kurt Zeilenga Date: Thu, 11 Feb 1999 21:26:57 +0000 (+0000) Subject: Update tools to print ID's using "%ld" instead of "%lu". X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~593 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=75ee1d83932be12ca71f94aef89b665b74599f84;p=openldap Update tools to print ID's using "%ld" instead of "%lu". --- diff --git a/servers/slapd/tools/ldbmtest.c b/servers/slapd/tools/ldbmtest.c index 5fd7119dad..f2e33a7610 100644 --- a/servers/slapd/tools/ldbmtest.c +++ b/servers/slapd/tools/ldbmtest.c @@ -664,7 +664,7 @@ print_entry( case 'e': /* id2entry - key is dnid, data is entry */ if ( key != NULL ) { SAFEMEMCPY( (char *) &id, key->dptr, sizeof(ID) ); - fprintf( fp, "%s %lu\n", klabel, id ); + fprintf( fp, "%s %ld\n", klabel, id ); } if ( data != NULL ) { if ( dlabel ) { diff --git a/servers/slapd/tools/ldif2id2children-bdb2.c b/servers/slapd/tools/ldif2id2children-bdb2.c index 78dc964f85..deb5d9dedc 100644 --- a/servers/slapd/tools/ldif2id2children-bdb2.c +++ b/servers/slapd/tools/ldif2id2children-bdb2.c @@ -176,7 +176,7 @@ main( int argc, char **argv ) } if ( linep == NULL ) { - fprintf( stderr, "entry %lu has no dn\n", + fprintf( stderr, "entry %ld has no dn\n", id ); } else { key.dptr = dn_normalize_case( val ); @@ -257,7 +257,7 @@ main( int argc, char **argv ) } if ( linep == NULL ) { - fprintf( stderr, "entry %lu has no dn\n", + fprintf( stderr, "entry %ld has no dn\n", id ); } else { if ( (dn = dn_parent( be, val )) diff --git a/servers/slapd/tools/ldif2id2children.c b/servers/slapd/tools/ldif2id2children.c index 484125cb90..186817bcc7 100644 --- a/servers/slapd/tools/ldif2id2children.c +++ b/servers/slapd/tools/ldif2id2children.c @@ -176,7 +176,7 @@ main( int argc, char **argv ) } if ( linep == NULL ) { - fprintf( stderr, "entry %lu has no dn\n", + fprintf( stderr, "entry %ld has no dn\n", id ); } else { key.dptr = dn_normalize_case( val ); @@ -257,7 +257,7 @@ main( int argc, char **argv ) } if ( linep == NULL ) { - fprintf( stderr, "entry %lu has no dn\n", + fprintf( stderr, "entry %ld has no dn\n", id ); } else { if ( (dn = dn_parent( be, val ))