From 75ee1d83932be12ca71f94aef89b665b74599f84 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 11 Feb 1999 21:26:57 +0000 Subject: [PATCH] Update tools to print ID's using "%ld" instead of "%lu". --- servers/slapd/tools/ldbmtest.c | 2 +- servers/slapd/tools/ldif2id2children-bdb2.c | 4 ++-- servers/slapd/tools/ldif2id2children.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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 )) -- 2.39.5