summaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-02-04 19:44:31 +0000
committerYang Tse <yangsita@gmail.com>2010-02-04 19:44:31 +0000
commit7aef172a347a0422a0968fde9c487639ff673383 (patch)
tree56ffb38d50520aa2a62aefa24a592381ecec4193 /lib/connect.c
parentf47b84b57ff74915820d26efc30459158bbe5c9c (diff)
downloadcurl-7aef172a347a0422a0968fde9c487639ff673383.tar.gz
fix printf-style format strings
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 1d2947488..5e94b8673 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -397,13 +397,13 @@ static CURLcode bindlocal(struct connectdata *conn,
error, Curl_strerror(conn, error));
return CURLE_INTERFACE_FAILED;
}
- infof(data, "Local port: %d\n", port);
+ infof(data, "Local port: %hu\n", port);
conn->bits.bound = TRUE;
return CURLE_OK;
}
if(--portnum > 0) {
- infof(data, "Bind to local port %d failed, trying next\n", port);
+ infof(data, "Bind to local port %hu failed, trying next\n", port);
port++; /* try next port */
/* We re-use/clobber the port variable here below */
if(sock->sa_family == AF_INET)