summaryrefslogtreecommitdiff
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/unit/unit1607.c2
-rw-r--r--tests/unit/unit1609.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unit1607.c b/tests/unit/unit1607.c
index 5be42dbeb..c0e6908b3 100644
--- a/tests/unit/unit1607.c
+++ b/tests/unit/unit1607.c
@@ -145,7 +145,7 @@ UNITTEST_START
addr = dns ? dns->addr : NULL;
for(j = 0; j < addressnum; ++j) {
- long port = 0;
+ int port = 0;
char ipaddress[MAX_IPADR_LEN] = {0};
if(!addr && !tests[i].address[j])
diff --git a/tests/unit/unit1609.c b/tests/unit/unit1609.c
index 76d295b7c..ee04da2ad 100644
--- a/tests/unit/unit1609.c
+++ b/tests/unit/unit1609.c
@@ -147,7 +147,7 @@ UNITTEST_START
addr = dns ? dns->addr : NULL;
for(j = 0; j < addressnum; ++j) {
- long port = 0;
+ int port = 0;
char ipaddress[MAX_IPADR_LEN] = {0};
if(!addr && !tests[i].address[j])