From 3420d12bdcb989003d844a36a349a5f7a442f49a Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 2 May 2003 13:08:47 +0000 Subject: [PATCH] Fix printf/Debug format arguments. --- servers/slapd/back-bdb/modrdn.c | 4 ++-- servers/slapd/back-ldbm/modrdn.c | 4 ++-- servers/slapd/config.c | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index 59cf33efcf..2e3824a2ac 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -502,11 +502,11 @@ retry: /* transaction retry */ #ifdef NEW_LOGGING LDAP_LOG ( OPERATION, DETAIL1, "==>bdb_modrdn: wr to new parent OK np=%p, id=%ld\n", - np, (long) np->e_id, 0 ); + (void *) np, (long) np->e_id, 0 ); #else Debug( LDAP_DEBUG_TRACE, "bdb_modrdn: wr to new parent OK np=%p, id=%ld\n", - np, (long) np->e_id, 0 ); + (void *) np, (long) np->e_id, 0 ); #endif /* check newSuperior for "children" acl */ diff --git a/servers/slapd/back-ldbm/modrdn.c b/servers/slapd/back-ldbm/modrdn.c index 761cfdadeb..8123505849 100644 --- a/servers/slapd/back-ldbm/modrdn.c +++ b/servers/slapd/back-ldbm/modrdn.c @@ -341,11 +341,11 @@ ldbm_back_modrdn( #ifdef NEW_LOGGING LDAP_LOG( BACK_LDBM, DETAIL1, "ldbm_back_modrdn: wr to new parent OK np=%p, id=%ld\n", - np, np->e_id, 0 ); + (void *) np, np->e_id, 0 ); #else Debug( LDAP_DEBUG_TRACE, "ldbm_back_modrdn: wr to new parent OK np=%p, id=%ld\n", - np, np->e_id, 0 ); + (void *) np, np->e_id, 0 ); #endif /* check newSuperior for "children" acl */ diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 869db21541..4e64131fd2 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -2967,7 +2967,8 @@ parse_syncrepl_line( si->interval = atoi( val ); if ( si->interval < 0 ) { fprintf( stderr, "Error: parse_syncrepl_line: " - "invalid interval \"%d\"\n", si->interval); + "invalid interval \"%ld\"\n", + (long) si->interval); return 1; } } else if ( !strncasecmp( cargv[ i ], -- 2.39.5