From: Hallvard Furuseth Date: Sun, 19 Jan 2003 14:07:02 +0000 (+0000) Subject: Fix printf format errors. X-Git-Tag: NO_SLAP_OP_BLOCKS~606 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3bd76701d137c355b81b64f75fc7559c186d867b;p=openldap Fix printf format errors. --- diff --git a/libraries/libldap/open.c b/libraries/libldap/open.c index a3a4144e45..630f8ae9e4 100644 --- a/libraries/libldap/open.c +++ b/libraries/libldap/open.c @@ -358,7 +358,7 @@ ldap_int_open_connection( "cn=peercred,cn=external,cn=auth")]; sprintf( authid, "uidNumber=%d,gidNumber=%d," "cn=peercred,cn=external,cn=auth", - geteuid(), getegid() ); + (int) geteuid(), (int) getegid() ); ldap_int_sasl_external( ld, conn, authid, LDAP_PVT_SASL_LOCAL_SSF); } #endif diff --git a/servers/slapd/controls.c b/servers/slapd/controls.c index 0a13f7d6cc..88bfc94279 100644 --- a/servers/slapd/controls.c +++ b/servers/slapd/controls.c @@ -477,13 +477,13 @@ static int parseProxyAuthz ( #ifdef NEW_LOGGING LDAP_LOG( OPERATION, ARGS, - "parseProxyAuthz: conn %d authzid=\"%s\"\n", + "parseProxyAuthz: conn %lu authzid=\"%s\"\n", conn->c_connid, ctrl->ldctl_value.bv_len ? ctrl->ldctl_value.bv_val : "anonymous", 0 ); #else Debug( LDAP_DEBUG_ARGS, - "parseProxyAuthz: conn %d authzid=\"%s\"\n", + "parseProxyAuthz: conn %lu authzid=\"%s\"\n", conn->c_connid, ctrl->ldctl_value.bv_len ? ctrl->ldctl_value.bv_val : "anonymous", 0 ); @@ -492,11 +492,11 @@ static int parseProxyAuthz ( if( ctrl->ldctl_value.bv_len == 0 ) { #ifdef NEW_LOGGING LDAP_LOG( OPERATION, RESULTS, - "parseProxyAuthz: conn=%d anonymous\n", + "parseProxyAuthz: conn=%lu anonymous\n", conn->c_connid, 0, 0 ); #else Debug( LDAP_DEBUG_TRACE, - "parseProxyAuthz: conn=%d anonymous\n", + "parseProxyAuthz: conn=%lu anonymous\n", conn->c_connid, 0, 0 ); #endif @@ -523,12 +523,12 @@ static int parseProxyAuthz ( #ifdef NEW_LOGGING LDAP_LOG( OPERATION, RESULTS, - "parseProxyAuthz: conn=%d \"%s\"\n", + "parseProxyAuthz: conn=%lu \"%s\"\n", conn->c_connid, dn.bv_len ? dn.bv_val : "(NULL)", 0 ); #else Debug( LDAP_DEBUG_TRACE, - "parseProxyAuthz: conn=%d \"%s\"\n", + "parseProxyAuthz: conn=%lu \"%s\"\n", conn->c_connid, dn.bv_len ? dn.bv_val : "(NULL)", 0 ); #endif diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index fad697b1dd..789031aedf 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1568,7 +1568,7 @@ slapd_daemon_task( "cn=peercred,cn=external,cn=auth")); sprintf(authid, "uidNumber=%d+gidNumber=%d," "cn=peercred,cn=external,cn=auth", - uid, gid); + (int) uid, (int) gid); } } dnsname = "local";