]> git.sur5r.net Git - openldap/commitdiff
gcc -Wformat cleanup
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Nov 1998 04:33:53 +0000 (04:33 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Nov 1998 04:33:53 +0000 (04:33 +0000)
servers/slapd/acl.c
servers/slapd/connection.c
servers/slapd/repl.c

index 5bb093fea9c93ca08d48e7d86a3365b00a0b1694..72a89e2751086049b139b853a50a8d096ce366af 100644 (file)
@@ -72,8 +72,8 @@ access_allowed(
 
        if (a) {
                for (i = 0; i < MAXREMATCHES && matches[i].rm_so > 0; i++) {
-                       Debug( LDAP_DEBUG_ARGS, "=> match[%d]: %d %d ",
-                               i, matches[i].rm_so, matches[i].rm_eo );
+                       Debug( LDAP_DEBUG_ARGS, "=> match[%d]: %d %d ", i,
+                              (int)matches[i].rm_so, (int)matches[i].rm_eo );
 
                        if( matches[i].rm_so <= matches[0].rm_eo ) {
                                for ( n = matches[i].rm_so; n < matches[i].rm_eo; n++) {
@@ -129,7 +129,7 @@ acl_get_applicable(
        for ( i = 1, a = be->be_acl; a != NULL; a = a->acl_next, i++ ) {
                if (a->acl_dnpat != NULL) {
                        Debug( LDAP_DEBUG_TRACE, "=> dnpat: [%d] %s nsub: %d\n", 
-                               i, a->acl_dnpat, a->acl_dnre.re_nsub);
+                               i, a->acl_dnpat, (int) a->acl_dnre.re_nsub);
 
                        if (regexec(&a->acl_dnre, edn, nmatch, matches, 0))
                                continue;
@@ -160,7 +160,7 @@ acl_get_applicable(
        for ( i = 1, a = global_acl; a != NULL; a = a->acl_next, i++ ) {
                if (a->acl_dnpat != NULL) {
                        Debug( LDAP_DEBUG_TRACE, "=> dnpat: [%d] %s nsub: %d\n", 
-                               i, a->acl_dnpat, a->acl_dnre.re_nsub);
+                               i, a->acl_dnpat, (int) a->acl_dnre.re_nsub);
 
                        if (regexec(&a->acl_dnre, edn, nmatch, matches, 0)) {
                                continue;
index 36fca0b705356a6b268055176c6eb5dee9ad076e..2d630f416824a401f2fd41a869cf2b095fc38a4c 100644 (file)
@@ -129,8 +129,8 @@ connection_activity(
                    "ber_get_next on fd %d failed errno %d (%s)\n",
                    conn->c_sb.sb_sd, errno, errno > -1 && errno < sys_nerr ?
                    sys_errlist[errno] : "unknown" );
-               Debug( LDAP_DEBUG_TRACE, "*** got %d of %lu so far\n",
-                   conn->c_currentber->ber_rwptr - conn->c_currentber->ber_buf,
+               Debug( LDAP_DEBUG_TRACE, "*** got %ld of %lu so far\n",
+                   (long)(conn->c_currentber->ber_rwptr - conn->c_currentber->ber_buf),
                    conn->c_currentber->ber_len, 0 );
 
                if ( errno != EWOULDBLOCK && errno != EAGAIN ) {
index 4f46ec114d317d20415957bcae3039d087254e51..ecea75af7a0f5619ed5fc0ac1bda1be8b67fbf05 100644 (file)
@@ -44,7 +44,7 @@ replog(
            i++ ) {
                fprintf( fp, "replica: %s\n", be->be_replica[i] );
        }
-       fprintf( fp, "time: %ld\n", currenttime );
+       fprintf( fp, "time: %ld\n", (long) currenttime );
        fprintf( fp, "dn: %s\n", dn );
 
        switch ( optype ) {