]> git.sur5r.net Git - openldap/commitdiff
Print entry ID with format %ld, not %d
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 4 Mar 1999 13:18:49 +0000 (13:18 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 4 Mar 1999 13:18:49 +0000 (13:18 +0000)
servers/slapd/tools/ldif2id2entry-bdb2.c
servers/slapd/tools/ldif2id2entry.c

index 7b24ec928a004eaaac4487f17d8dd6a5e339cf8b..fef6d6e460f97de08162da7a5fb40760917964ca 100644 (file)
@@ -138,7 +138,7 @@ main( int argc, char **argv )
                        len = strlen( line );
                        if ( buf == NULL || *buf == '\0' ) {
                                if (!isdigit((unsigned char) line[0])) {
-                                       sprintf( idbuf, "%d\n", id + 1 );
+                                       sprintf( idbuf, "%ld\n", id + 1 );
                                        idlen = strlen( idbuf );
                                } else {
                                        id = atol(line) - 1;
index 1806df7917def0bfbf5fd7a9884726e0686eea6c..3d50040e0f73f6a1f0bbf11d654c7549c34023f1 100644 (file)
@@ -138,7 +138,7 @@ main( int argc, char **argv )
                        len = strlen( line );
                        if ( buf == NULL || *buf == '\0' ) {
                                if (!isdigit((unsigned char) line[0])) {
-                                       sprintf( idbuf, "%d\n", id + 1 );
+                                       sprintf( idbuf, "%ld\n", id + 1 );
                                        idlen = strlen( idbuf );
                                } else {
                                        id = atol(line) - 1;