From 7aef172a347a0422a0968fde9c487639ff673383 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 4 Feb 2010 19:44:31 +0000 Subject: fix printf-style format strings --- lib/ldap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/ldap.c') diff --git a/lib/ldap.c b/lib/ldap.c index 1b86e5925..fcd56b9e9 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -262,7 +262,7 @@ static CURLcode Curl_ldap(struct connectdata *conn, bool *done) } server = ldapssl_init(conn->host.name, (int)conn->port, 1); if(server == NULL) { - failf(data, "LDAP local: Cannot connect to %s:%d", + failf(data, "LDAP local: Cannot connect to %s:%hu", conn->host.name, conn->port); status = CURLE_COULDNT_CONNECT; goto quit; @@ -302,7 +302,7 @@ static CURLcode Curl_ldap(struct connectdata *conn, bool *done) } server = ldap_init(conn->host.name, (int)conn->port); if(server == NULL) { - failf(data, "LDAP local: Cannot connect to %s:%d", + failf(data, "LDAP local: Cannot connect to %s:%hu", conn->host.name, conn->port); status = CURLE_COULDNT_CONNECT; goto quit; @@ -337,7 +337,7 @@ static CURLcode Curl_ldap(struct connectdata *conn, bool *done) } else { server = ldap_init(conn->host.name, (int)conn->port); if(server == NULL) { - failf(data, "LDAP local: Cannot connect to %s:%d", + failf(data, "LDAP local: Cannot connect to %s:%hu", conn->host.name, conn->port); status = CURLE_COULDNT_CONNECT; goto quit; -- cgit v1.2.3