diff options
author | Yang Tse <yangsita@gmail.com> | 2010-01-28 15:34:18 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2010-01-28 15:34:18 +0000 |
commit | d65cf7889b4ce669876f9e05442fd09f6fe40e37 (patch) | |
tree | 5c2c803617d46cf5a0329403fa49b53a008000c2 /lib/connect.c | |
parent | ddab9bd2ec85d145fd98d647cb235621c1c03258 (diff) | |
download | curl-d65cf7889b4ce669876f9e05442fd09f6fe40e37.tar.gz |
fix printf-style format strings
Diffstat (limited to 'lib/connect.c')
-rw-r--r-- | lib/connect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/connect.c b/lib/connect.c index 3ae38c990..35c3d4855 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -581,7 +581,7 @@ CURLcode Curl_is_connected(struct connectdata *conn, data->state.os_errno = error; infof(data, "Connection failed\n"); if(trynextip(conn, sockindex, connected)) { - failf(data, "Failed connect to %s:%d; %s", + failf(data, "Failed connect to %s:%ld; %s", conn->host.name, conn->port, Curl_strerror(conn, error)); code = CURLE_COULDNT_CONNECT; } @@ -601,7 +601,7 @@ CURLcode Curl_is_connected(struct connectdata *conn, if(trynextip(conn, sockindex, connected)) { error = SOCKERRNO; data->state.os_errno = error; - failf(data, "Failed connect to %s:%d; %s", + failf(data, "Failed connect to %s:%ld; %s", conn->host.name, conn->port, Curl_strerror(conn, error)); code = CURLE_COULDNT_CONNECT; } |