]> git.sur5r.net Git - openldap/commitdiff
Fix printf format errors.
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 19 Jan 2003 14:07:02 +0000 (14:07 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 19 Jan 2003 14:07:02 +0000 (14:07 +0000)
libraries/libldap/open.c
servers/slapd/controls.c
servers/slapd/daemon.c

index a3a4144e452a6bf336035991d060d4ce08a779d4..630f8ae9e489b66b08f85d9dfa92f2ab70c36742 100644 (file)
@@ -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
index 0a13f7d6cccdc0e8f5cc92bdfd7e3226b274167d..88bfc9427986f2983d96c61f2390dbba7fc04dad 100644 (file)
@@ -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
index fad697b1dd9f078561a578e3fbe543b1eba787b3..789031aedf8602637b76e3861379be25d43c27f0 100644 (file)
@@ -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";