]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
lib1560: replace an `int` with `bool`
authorViktor Szakats <commit@vsz.me>
Mon, 28 Jul 2025 13:08:03 +0000 (15:08 +0200)
committerViktor Szakats <commit@vsz.me>
Mon, 28 Jul 2025 15:29:57 +0000 (17:29 +0200)
Follow-up to 7d1ca2e7e1a3b9d3ba70f587f6bc5e83f905afd5 #17933

Closes #18064

tests/libtest/lib1560.c

index 62e1cdd6d5c40144f7850d6e37d2e1c35bbd806e..88c54097e13521b03f44f47bfcbe2c4a5650cff4 100644 (file)
@@ -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 */