From: Dan Fandrich Date: Tue, 5 Sep 2023 00:07:51 +0000 (-0700) Subject: tests: fix a type warning on 32-bit x86 X-Git-Tag: curl-8_3_0~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=876278935f379096ba75f51d7f280bc90e8bd873;p=thirdparty%2Fcurl.git tests: fix a type warning on 32-bit x86 --- diff --git a/tests/http/clients/ws-data.c b/tests/http/clients/ws-data.c index e8665b1826..487d109ef3 100644 --- a/tests/http/clients/ws-data.c +++ b/tests/http/clients/ws-data.c @@ -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; @@ -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;