Skip to content

Commit

Permalink
tests: fix a type warning on 32-bit x86
Browse files Browse the repository at this point in the history
  • Loading branch information
dfandrich committed Sep 5, 2023
1 parent 205d686 commit 8762789
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/http/clients/ws-data.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ int main(int argc, char *argv[])
CURL *curl;
CURLcode res = CURLE_OK;
const char *url;
curl_off_t l1, l2;
long l1, l2;
size_t plen_min, plen_max;


Expand All @@ -217,12 +217,12 @@ int main(int argc, char *argv[])
url = argv[1];
l1 = strtol(argv[2], NULL, 10);
if(l1 < 0) {
fprintf(stderr, "minlen must be >= 0, got %ld\n", (long)l1);
fprintf(stderr, "minlen must be >= 0, got %ld\n", l1);
return 2;
}
l2 = strtol(argv[3], NULL, 10);
if(l2 < 0) {
fprintf(stderr, "maxlen must be >= 0, got %ld\n", (long)l2);
fprintf(stderr, "maxlen must be >= 0, got %ld\n", l2);
return 2;
}
plen_min = l1;
Expand Down

0 comments on commit 8762789

Please sign in to comment.