summaryrefslogtreecommitdiff
path: root/lib/vquic
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2021-02-01 02:10:07 -0500
committerJay Satiro <raysatiro@yahoo.com>2021-02-09 02:53:31 -0500
commitcb2dc1ba89dbdb3850de8e92907bbbbb9c1903e0 (patch)
tree4f6d4b8c68d2e64f4dde8d607a542eb4c33a962b /lib/vquic
parent65ca2294619f865362332ceddc622db92d0f50a6 (diff)
downloadcurl-cb2dc1ba89dbdb3850de8e92907bbbbb9c1903e0.tar.gz
lib: use int type for more port variables
This is a follow-up to 764c6bd. Prior to that change port variables were usually type long. Closes https://github.com/curl/curl/pull/6553
Diffstat (limited to 'lib/vquic')
-rw-r--r--lib/vquic/ngtcp2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vquic/ngtcp2.c b/lib/vquic/ngtcp2.c
index d4d0e8bf4..08218890c 100644
--- a/lib/vquic/ngtcp2.c
+++ b/lib/vquic/ngtcp2.c
@@ -758,7 +758,7 @@ CURLcode Curl_quic_connect(struct Curl_easy *data,
ngtcp2_path path; /* TODO: this must be initialized properly */
struct quicsocket *qs = &conn->hequic[sockindex];
char ipbuf[40];
- long port;
+ int port;
int qfd;
if(qs->conn)
@@ -773,7 +773,7 @@ CURLcode Curl_quic_connect(struct Curl_easy *data,
return CURLE_BAD_FUNCTION_ARGUMENT;
}
- infof(data, "Connect socket %d over QUIC to %s:%ld\n",
+ infof(data, "Connect socket %d over QUIC to %s:%d\n",
sockfd, ipbuf, port);
qs->version = NGTCP2_PROTO_VER_MAX;