]> git.sur5r.net Git - openldap/commitdiff
Fix printf/Debug format arguments.
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 2 May 2003 13:08:47 +0000 (13:08 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 2 May 2003 13:08:47 +0000 (13:08 +0000)
servers/slapd/back-bdb/modrdn.c
servers/slapd/back-ldbm/modrdn.c
servers/slapd/config.c

index 59cf33efcfd12e26c7a721ea98cf1420e0b2ffbc..2e3824a2ac0a7d15b74a8a91f6a5b2661fb6be7f 100644 (file)
@@ -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 */
index 761cfdadebee3411dc5e0d0bda3034487e8c1b2d..8123505849574710e9625b809bad67472470023f 100644 (file)
@@ -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 */
index 869db21541e6917bf03d849f833b5809712b2016..4e64131fd250efffaaa282d4b234bcbfc7414275 100644 (file)
@@ -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 ],