From: Hallvard Furuseth Date: Thu, 4 Mar 1999 13:18:49 +0000 (+0000) Subject: Print entry ID with format %ld, not %d X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~485 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=94c6048f2f10be446f77d5d1d0fec92020c2ea02;p=openldap Print entry ID with format %ld, not %d --- diff --git a/servers/slapd/tools/ldif2id2entry-bdb2.c b/servers/slapd/tools/ldif2id2entry-bdb2.c index 7b24ec928a..fef6d6e460 100644 --- a/servers/slapd/tools/ldif2id2entry-bdb2.c +++ b/servers/slapd/tools/ldif2id2entry-bdb2.c @@ -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; diff --git a/servers/slapd/tools/ldif2id2entry.c b/servers/slapd/tools/ldif2id2entry.c index 1806df7917..3d50040e0f 100644 --- a/servers/slapd/tools/ldif2id2entry.c +++ b/servers/slapd/tools/ldif2id2entry.c @@ -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;