From: Viktor Szakats Date: Mon, 28 Jul 2025 13:08:03 +0000 (+0200) Subject: lib1560: replace an `int` with `bool` X-Git-Tag: curl-8_16_0~350 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81f5991e14abe71ccee22e9576dc447e8c3418f4;p=thirdparty%2Fcurl.git lib1560: replace an `int` with `bool` Follow-up to 7d1ca2e7e1a3b9d3ba70f587f6bc5e83f905afd5 #17933 Closes #18064 --- diff --git a/tests/libtest/lib1560.c b/tests/libtest/lib1560.c index 62e1cdd6d5..88c54097e1 100644 --- a/tests/libtest/lib1560.c +++ b/tests/libtest/lib1560.c @@ -1428,7 +1428,7 @@ static int set_url(void) 2. Set one or more parts 3. Extract and compare all parts - not the URL */ -static int setget_parts(int has_utf8) +static int setget_parts(bool has_utf8) { int i; int error = 0; @@ -1531,7 +1531,7 @@ static int set_parts(void) return error; } -static int get_url(int has_utf8) +static int get_url(bool has_utf8) { int i; int error = 0; @@ -1574,7 +1574,7 @@ static int get_url(int has_utf8) return error; } -static int get_parts(int has_utf8) +static int get_parts(bool has_utf8) { int i; int error = 0; @@ -2030,7 +2030,7 @@ err: static CURLcode test_lib1560(char *URL) { - int has_utf8 = !!getenv("CURL_TEST_HAVE_CODESET_UTF8"); + bool has_utf8 = !!getenv("CURL_TEST_HAVE_CODESET_UTF8"); (void)URL; /* not used */