]> git.sur5r.net Git - openldap/commitdiff
Update tools to print ID's using "%ld" instead of "%lu".
authorKurt Zeilenga <kurt@openldap.org>
Thu, 11 Feb 1999 21:26:57 +0000 (21:26 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 11 Feb 1999 21:26:57 +0000 (21:26 +0000)
servers/slapd/tools/ldbmtest.c
servers/slapd/tools/ldif2id2children-bdb2.c
servers/slapd/tools/ldif2id2children.c

index 5fd7119dadff2e5c1d9dea6eb454b16fc6c1a642..f2e33a7610bdf1722c7c52ca931c04aa2e2f7990 100644 (file)
@@ -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 ) {
index 78dc964f8581b7ca1626dc7c532e69b21894a8b7..deb5d9dedc7dcbf45f4d5e6878559669cf739902 100644 (file)
@@ -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 ))
index 484125cb90fd6f63811e800b6e808d00d322e2ff..186817bcc724e03d90d08b57c051aaa11fefff2b 100644 (file)
@@ -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 ))