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
This commit is contained in:
Jay Satiro 2021-02-01 02:10:07 -05:00
parent 65ca229461
commit cb2dc1ba89
8 changed files with 18 additions and 18 deletions

View file

@ -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])

View file

@ -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])