aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-14 11:36:14 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-14 11:36:14 +0300
commit9f2a4206e3bad7d9fbc253f057a37b786e8850cb (patch)
tree38d683a508c984e5dc83f3d3e6b70c925e183d50
parentd3ec93c9ce30457a2adeac3cc0bb66f6643f32e8 (diff)
downloadlibmicrohttpd-9f2a4206e3bad7d9fbc253f057a37b786e8850cb.tar.gz
libmicrohttpd-9f2a4206e3bad7d9fbc253f057a37b786e8850cb.zip
test_str: fixed more compiler warnings
-rw-r--r--src/microhttpd/test_str.c74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/microhttpd/test_str.c b/src/microhttpd/test_str.c
index 75f8092b..a974c24a 100644
--- a/src/microhttpd/test_str.c
+++ b/src/microhttpd/test_str.c
@@ -1163,7 +1163,7 @@ check_str_to_uint64_valid (void)
1163 "FAILED: MHD_str_to_uint64_(\"%s\", ->%" PRIu64 ") returned %" 1163 "FAILED: MHD_str_to_uint64_(\"%s\", ->%" PRIu64 ") returned %"
1164 PRIuPTR 1164 PRIuPTR
1165 ", while expecting %d." 1165 ", while expecting %d."
1166 " Locale: %s\n", n_prnt (t->str.str), rv, (intptr_t) rs, 1166 " Locale: %s\n", n_prnt (t->str.str), rv, (uintptr_t) rs,
1167 (int) t->num_of_digt, get_current_locale_str ()); 1167 (int) t->num_of_digt, get_current_locale_str ());
1168 } 1168 }
1169 if (rv != t->val) 1169 if (rv != t->val)
@@ -1413,7 +1413,7 @@ check_str_to_uint64_n_valid (void)
1413 "FAILED: MHD_str_to_uint64_n_(\"%s\", %" PRIuPTR ", ->%" 1413 "FAILED: MHD_str_to_uint64_n_(\"%s\", %" PRIuPTR ", ->%"
1414 PRIu64 ")" 1414 PRIu64 ")"
1415 " returned %" PRIuPTR ", while expecting %d. Locale: %s\n", 1415 " returned %" PRIuPTR ", while expecting %d. Locale: %s\n",
1416 n_prnt (t->str.str), (intptr_t) len, rv, (intptr_t) rs, 1416 n_prnt (t->str.str), (uintptr_t) len, rv, (uintptr_t) rs,
1417 (int) t->num_of_digt, get_current_locale_str ()); 1417 (int) t->num_of_digt, get_current_locale_str ());
1418 } 1418 }
1419 if (rv != t->val) 1419 if (rv != t->val)
@@ -1425,7 +1425,7 @@ check_str_to_uint64_n_valid (void)
1425 PRIu64 ")" 1425 PRIu64 ")"
1426 " converted string to value %" PRIu64 1426 " converted string to value %" PRIu64
1427 ", while expecting result %" PRIu64 1427 ", while expecting result %" PRIu64
1428 ". Locale: %s\n", n_prnt (t->str.str), (intptr_t) len, rv, 1428 ". Locale: %s\n", n_prnt (t->str.str), (uintptr_t) len, rv,
1429 rv, 1429 rv,
1430 t->val, get_current_locale_str ()); 1430 t->val, get_current_locale_str ());
1431 } 1431 }
@@ -1435,8 +1435,8 @@ check_str_to_uint64_n_valid (void)
1435 "PASSED: MHD_str_to_uint64_n_(\"%s\", %" PRIuPTR "..%" PRIuPTR ", ->%" 1435 "PASSED: MHD_str_to_uint64_n_(\"%s\", %" PRIuPTR "..%" PRIuPTR ", ->%"
1436 PRIu64 ")" 1436 PRIu64 ")"
1437 " == %" PRIuPTR "\n", n_prnt (t->str.str), 1437 " == %" PRIuPTR "\n", n_prnt (t->str.str),
1438 (intptr_t) t->num_of_digt, 1438 (uintptr_t) t->num_of_digt,
1439 (intptr_t) t->str.len + 1, rv, rs); 1439 (uintptr_t) t->str.len + 1, rv, rs);
1440 } 1440 }
1441 } 1441 }
1442 return t_failed; 1442 return t_failed;
@@ -1704,7 +1704,7 @@ check_strx_to_uint32_valid (void)
1704 ") returned %" 1704 ") returned %"
1705 PRIuPTR ", while expecting %d." 1705 PRIuPTR ", while expecting %d."
1706 " Locale: %s\n", n_prnt (t->str.str), (uint64_t) rv, 1706 " Locale: %s\n", n_prnt (t->str.str), (uint64_t) rv,
1707 (intptr_t) rs, (int) t->num_of_digt, 1707 (uintptr_t) rs, (int) t->num_of_digt,
1708 get_current_locale_str ()); 1708 get_current_locale_str ());
1709 } 1709 }
1710 if (rv != t->val) 1710 if (rv != t->val)
@@ -1982,8 +1982,8 @@ check_strx_to_uint32_n_valid (void)
1982 "FAILED: MHD_strx_to_uint32_n_(\"%s\", %" PRIuPTR ", ->0x%" 1982 "FAILED: MHD_strx_to_uint32_n_(\"%s\", %" PRIuPTR ", ->0x%"
1983 PRIX64 ")" 1983 PRIX64 ")"
1984 " returned %" PRIuPTR ", while expecting %d. Locale: %s\n", 1984 " returned %" PRIuPTR ", while expecting %d. Locale: %s\n",
1985 n_prnt (t->str.str), (intptr_t) len, (uint64_t) rv, 1985 n_prnt (t->str.str), (uintptr_t) len, (uint64_t) rv,
1986 (intptr_t) rs, 1986 (uintptr_t) rs,
1987 (int) t->num_of_digt, get_current_locale_str ()); 1987 (int) t->num_of_digt, get_current_locale_str ());
1988 } 1988 }
1989 if (rv != t->val) 1989 if (rv != t->val)
@@ -1995,7 +1995,7 @@ check_strx_to_uint32_n_valid (void)
1995 PRIX64 ")" 1995 PRIX64 ")"
1996 " converted string to value 0x%" PRIX64 1996 " converted string to value 0x%" PRIX64
1997 ", while expecting result 0x%" PRIX64 1997 ", while expecting result 0x%" PRIX64
1998 ". Locale: %s\n", n_prnt (t->str.str), (intptr_t) len, 1998 ". Locale: %s\n", n_prnt (t->str.str), (uintptr_t) len,
1999 (uint64_t) rv, (uint64_t) rv, 1999 (uint64_t) rv, (uint64_t) rv,
2000 t->val, get_current_locale_str ()); 2000 t->val, get_current_locale_str ());
2001 } 2001 }
@@ -2006,8 +2006,8 @@ check_strx_to_uint32_n_valid (void)
2006 ", ->0x%" 2006 ", ->0x%"
2007 PRIX64 ")" 2007 PRIX64 ")"
2008 " == %" PRIuPTR "\n", n_prnt (t->str.str), 2008 " == %" PRIuPTR "\n", n_prnt (t->str.str),
2009 (intptr_t) t->num_of_digt, 2009 (uintptr_t) t->num_of_digt,
2010 (intptr_t) t->str.len + 1, (uint64_t) rv, rs); 2010 (uintptr_t) t->str.len + 1, (uint64_t) rv, rs);
2011 } 2011 }
2012 } 2012 }
2013 return t_failed; 2013 return t_failed;
@@ -2310,7 +2310,7 @@ check_strx_to_uint64_valid (void)
2310 "FAILED: MHD_strx_to_uint64_(\"%s\", ->0x%" PRIX64 2310 "FAILED: MHD_strx_to_uint64_(\"%s\", ->0x%" PRIX64
2311 ") returned %" 2311 ") returned %"
2312 PRIuPTR ", while expecting %d." 2312 PRIuPTR ", while expecting %d."
2313 " Locale: %s\n", n_prnt (t->str.str), rv, (intptr_t) rs, 2313 " Locale: %s\n", n_prnt (t->str.str), rv, (uintptr_t) rs,
2314 (int) t->num_of_digt, get_current_locale_str ()); 2314 (int) t->num_of_digt, get_current_locale_str ());
2315 } 2315 }
2316 if (rv != t->val) 2316 if (rv != t->val)
@@ -2321,8 +2321,8 @@ check_strx_to_uint64_valid (void)
2321 "FAILED: MHD_strx_to_uint64_(\"%s\", ->0x%" PRIX64 2321 "FAILED: MHD_strx_to_uint64_(\"%s\", ->0x%" PRIX64
2322 ") converted string to value 0x%" 2322 ") converted string to value 0x%"
2323 PRIX64 "," 2323 PRIX64 ","
2324 " while expecting result 0x%" PRIX64 ". Locale: %s\n", n_prnt ( 2324 " while expecting result 0x%" PRIX64 ". Locale: %s\n",
2325 t->str.str), rv, rv, 2325 n_prnt (t->str.str), rv, rv,
2326 t->val, get_current_locale_str ()); 2326 t->val, get_current_locale_str ());
2327 } 2327 }
2328 if ((verbose > 1) && (j == locale_name_count - 1) && ! c_failed[i]) 2328 if ((verbose > 1) && (j == locale_name_count - 1) && ! c_failed[i])
@@ -2565,7 +2565,7 @@ check_strx_to_uint64_n_valid (void)
2565 "FAILED: MHD_strx_to_uint64_n_(\"%s\", %" PRIuPTR ", ->0x%" 2565 "FAILED: MHD_strx_to_uint64_n_(\"%s\", %" PRIuPTR ", ->0x%"
2566 PRIX64 ")" 2566 PRIX64 ")"
2567 " returned %" PRIuPTR ", while expecting %d. Locale: %s\n", 2567 " returned %" PRIuPTR ", while expecting %d. Locale: %s\n",
2568 n_prnt (t->str.str), (intptr_t) len, rv, (intptr_t) rs, 2568 n_prnt (t->str.str), (uintptr_t) len, rv, (uintptr_t) rs,
2569 (int) t->num_of_digt, get_current_locale_str ()); 2569 (int) t->num_of_digt, get_current_locale_str ());
2570 } 2570 }
2571 if (rv != t->val) 2571 if (rv != t->val)
@@ -2577,7 +2577,7 @@ check_strx_to_uint64_n_valid (void)
2577 PRIX64 ")" 2577 PRIX64 ")"
2578 " converted string to value 0x%" PRIX64 2578 " converted string to value 0x%" PRIX64
2579 ", while expecting result 0x%" PRIX64 2579 ", while expecting result 0x%" PRIX64
2580 ". Locale: %s\n", n_prnt (t->str.str), (intptr_t) len, rv, 2580 ". Locale: %s\n", n_prnt (t->str.str), (uintptr_t) len, rv,
2581 rv, 2581 rv,
2582 t->val, get_current_locale_str ()); 2582 t->val, get_current_locale_str ());
2583 } 2583 }
@@ -2588,8 +2588,8 @@ check_strx_to_uint64_n_valid (void)
2588 ", ->0x%" 2588 ", ->0x%"
2589 PRIX64 ")" 2589 PRIX64 ")"
2590 " == %" PRIuPTR "\n", n_prnt (t->str.str), 2590 " == %" PRIuPTR "\n", n_prnt (t->str.str),
2591 (intptr_t) t->num_of_digt, 2591 (uintptr_t) t->num_of_digt,
2592 (intptr_t) t->str.len + 1, rv, rs); 2592 (uintptr_t) t->str.len + 1, rv, rs);
2593 } 2593 }
2594 } 2594 }
2595 return t_failed; 2595 return t_failed;
@@ -3235,7 +3235,7 @@ check_str_from_uint16 (void)
3235 "FAILED: MHD_uint16_to_str(%" PRIu64 ", -> buf," 3235 "FAILED: MHD_uint16_to_str(%" PRIu64 ", -> buf,"
3236 " %d) returned %" PRIuPTR 3236 " %d) returned %" PRIuPTR
3237 ", while expecting 0." 3237 ", while expecting 0."
3238 " Locale: %s\n", t->val, (int) b_size, (intptr_t) rs, 3238 " Locale: %s\n", t->val, (int) b_size, (uintptr_t) rs,
3239 get_current_locale_str ()); 3239 get_current_locale_str ());
3240 } 3240 }
3241 } 3241 }
@@ -3250,7 +3250,7 @@ check_str_from_uint16 (void)
3250 "FAILED: MHD_uint16_to_str(%" PRIu64 ", -> buf," 3250 "FAILED: MHD_uint16_to_str(%" PRIu64 ", -> buf,"
3251 " %d) returned %" PRIuPTR 3251 " %d) returned %" PRIuPTR
3252 ", while expecting %d." 3252 ", while expecting %d."
3253 " Locale: %s\n", t->val, (int) b_size, (intptr_t) rs, 3253 " Locale: %s\n", t->val, (int) b_size, (uintptr_t) rs,
3254 (int) t->num_of_digt, get_current_locale_str ()); 3254 (int) t->num_of_digt, get_current_locale_str ());
3255 } 3255 }
3256 else if (0 != memcmp (buf, t->str.str, t->num_of_digt)) 3256 else if (0 != memcmp (buf, t->str.str, t->num_of_digt))
@@ -3262,7 +3262,7 @@ check_str_from_uint16 (void)
3262 "FAILED: MHD_uint16_to_str(%" PRIu64 ", -> \"%.*s\"," 3262 "FAILED: MHD_uint16_to_str(%" PRIu64 ", -> \"%.*s\","
3263 " %d) returned %" PRIuPTR "." 3263 " %d) returned %" PRIuPTR "."
3264 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size, 3264 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size,
3265 (intptr_t) rs, get_current_locale_str ()); 3265 (uintptr_t) rs, get_current_locale_str ());
3266 } 3266 }
3267 else if (0 != memcmp (buf + rs, erase + rs, sizeof(buf) - rs)) 3267 else if (0 != memcmp (buf + rs, erase + rs, sizeof(buf) - rs))
3268 { 3268 {
@@ -3274,14 +3274,14 @@ check_str_from_uint16 (void)
3274 " %d) returned %" PRIuPTR 3274 " %d) returned %" PRIuPTR
3275 " and touched data after the resulting string." 3275 " and touched data after the resulting string."
3276 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size, 3276 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size,
3277 (intptr_t) rs, get_current_locale_str ()); 3277 (uintptr_t) rs, get_current_locale_str ());
3278 } 3278 }
3279 } 3279 }
3280 } 3280 }
3281 if ((verbose > 1) && (j == locale_name_count - 1) && ! c_failed[i]) 3281 if ((verbose > 1) && (j == locale_name_count - 1) && ! c_failed[i])
3282 printf ("PASSED: MHD_uint16_to_str(%" PRIu64 ", -> \"%.*s\", %d) " 3282 printf ("PASSED: MHD_uint16_to_str(%" PRIu64 ", -> \"%.*s\", %d) "
3283 "== %" PRIuPTR "\n", 3283 "== %" PRIuPTR "\n",
3284 t->val, (int) rs, buf, (int) b_size - 1, (intptr_t) rs); 3284 t->val, (int) rs, buf, (int) b_size - 1, (uintptr_t) rs);
3285 } 3285 }
3286 } 3286 }
3287 return t_failed; 3287 return t_failed;
@@ -3357,7 +3357,7 @@ check_str_from_uint64 (void)
3357 "FAILED: MHD_uint64_to_str(%" PRIu64 ", -> buf," 3357 "FAILED: MHD_uint64_to_str(%" PRIu64 ", -> buf,"
3358 " %d) returned %" PRIuPTR 3358 " %d) returned %" PRIuPTR
3359 ", while expecting 0." 3359 ", while expecting 0."
3360 " Locale: %s\n", t->val, (int) b_size, (intptr_t) rs, 3360 " Locale: %s\n", t->val, (int) b_size, (uintptr_t) rs,
3361 get_current_locale_str ()); 3361 get_current_locale_str ());
3362 } 3362 }
3363 } 3363 }
@@ -3372,7 +3372,7 @@ check_str_from_uint64 (void)
3372 "FAILED: MHD_uint64_to_str(%" PRIu64 ", -> buf," 3372 "FAILED: MHD_uint64_to_str(%" PRIu64 ", -> buf,"
3373 " %d) returned %" PRIuPTR 3373 " %d) returned %" PRIuPTR
3374 ", while expecting %d." 3374 ", while expecting %d."
3375 " Locale: %s\n", t->val, (int) b_size, (intptr_t) rs, 3375 " Locale: %s\n", t->val, (int) b_size, (uintptr_t) rs,
3376 (int) t->num_of_digt, get_current_locale_str ()); 3376 (int) t->num_of_digt, get_current_locale_str ());
3377 } 3377 }
3378 else if (0 != memcmp (buf, t->str.str, t->num_of_digt)) 3378 else if (0 != memcmp (buf, t->str.str, t->num_of_digt))
@@ -3384,7 +3384,7 @@ check_str_from_uint64 (void)
3384 "FAILED: MHD_uint64_to_str(%" PRIu64 ", -> \"%.*s\"," 3384 "FAILED: MHD_uint64_to_str(%" PRIu64 ", -> \"%.*s\","
3385 " %d) returned %" PRIuPTR "." 3385 " %d) returned %" PRIuPTR "."
3386 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size, 3386 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size,
3387 (intptr_t) rs, get_current_locale_str ()); 3387 (uintptr_t) rs, get_current_locale_str ());
3388 } 3388 }
3389 else if (0 != memcmp (buf + rs, erase + rs, sizeof(buf) - rs)) 3389 else if (0 != memcmp (buf + rs, erase + rs, sizeof(buf) - rs))
3390 { 3390 {
@@ -3396,14 +3396,14 @@ check_str_from_uint64 (void)
3396 " %d) returned %" PRIuPTR 3396 " %d) returned %" PRIuPTR
3397 " and touched data after the resulting string." 3397 " and touched data after the resulting string."
3398 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size, 3398 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size,
3399 (intptr_t) rs, get_current_locale_str ()); 3399 (uintptr_t) rs, get_current_locale_str ());
3400 } 3400 }
3401 } 3401 }
3402 } 3402 }
3403 if ((verbose > 1) && (j == locale_name_count - 1) && ! c_failed[i]) 3403 if ((verbose > 1) && (j == locale_name_count - 1) && ! c_failed[i])
3404 printf ("PASSED: MHD_uint64_to_str(%" PRIu64 ", -> \"%.*s\", %d) " 3404 printf ("PASSED: MHD_uint64_to_str(%" PRIu64 ", -> \"%.*s\", %d) "
3405 "== %" PRIuPTR "\n", 3405 "== %" PRIuPTR "\n",
3406 t->val, (int) rs, buf, (int) b_size - 1, (intptr_t) rs); 3406 t->val, (int) rs, buf, (int) b_size - 1, (uintptr_t) rs);
3407 } 3407 }
3408 } 3408 }
3409 return t_failed; 3409 return t_failed;
@@ -3482,7 +3482,7 @@ check_strx_from_uint32 (void)
3482 "FAILED: MHD_uint32_to_strx(0x%" PRIX64 ", -> buf," 3482 "FAILED: MHD_uint32_to_strx(0x%" PRIX64 ", -> buf,"
3483 " %d) returned %" PRIuPTR 3483 " %d) returned %" PRIuPTR
3484 ", while expecting 0." 3484 ", while expecting 0."
3485 " Locale: %s\n", t->val, (int) b_size, (intptr_t) rs, 3485 " Locale: %s\n", t->val, (int) b_size, (uintptr_t) rs,
3486 get_current_locale_str ()); 3486 get_current_locale_str ());
3487 } 3487 }
3488 } 3488 }
@@ -3497,7 +3497,7 @@ check_strx_from_uint32 (void)
3497 "FAILED: MHD_uint32_to_strx(0x%" PRIX64 ", -> buf," 3497 "FAILED: MHD_uint32_to_strx(0x%" PRIX64 ", -> buf,"
3498 " %d) returned %" PRIuPTR 3498 " %d) returned %" PRIuPTR
3499 ", while expecting %d." 3499 ", while expecting %d."
3500 " Locale: %s\n", t->val, (int) b_size, (intptr_t) rs, 3500 " Locale: %s\n", t->val, (int) b_size, (uintptr_t) rs,
3501 (int) t->num_of_digt, get_current_locale_str ()); 3501 (int) t->num_of_digt, get_current_locale_str ());
3502 } 3502 }
3503 else if (0 == MHD_str_equal_caseless_bin_n_ (buf, t->str.str, 3503 else if (0 == MHD_str_equal_caseless_bin_n_ (buf, t->str.str,
@@ -3510,7 +3510,7 @@ check_strx_from_uint32 (void)
3510 "FAILED: MHD_uint32_to_strx(0x%" PRIX64 ", -> \"%.*s\"," 3510 "FAILED: MHD_uint32_to_strx(0x%" PRIX64 ", -> \"%.*s\","
3511 " %d) returned %" PRIuPTR "." 3511 " %d) returned %" PRIuPTR "."
3512 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size, 3512 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size,
3513 (intptr_t) rs, get_current_locale_str ()); 3513 (uintptr_t) rs, get_current_locale_str ());
3514 } 3514 }
3515 else if (sizeof(buf) <= rs) 3515 else if (sizeof(buf) <= rs)
3516 { 3516 {
@@ -3530,14 +3530,14 @@ check_strx_from_uint32 (void)
3530 " %d) returned %" PRIuPTR 3530 " %d) returned %" PRIuPTR
3531 " and touched data after the resulting string." 3531 " and touched data after the resulting string."
3532 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size, 3532 " Locale: %s\n", t->val, (int) rs, buf, (int) b_size,
3533 (intptr_t) rs, get_current_locale_str ()); 3533 (uintptr_t) rs, get_current_locale_str ());
3534 } 3534 }
3535 } 3535 }
3536 } 3536 }
3537 if ((verbose > 1) && (j == locale_name_count - 1) && ! c_failed[i]) 3537 if ((verbose > 1) && (j == locale_name_count - 1) && ! c_failed[i])
3538 printf ("PASSED: MHD_uint32_to_strx(0x%" PRIX64 ", -> \"%.*s\", %d) " 3538 printf ("PASSED: MHD_uint32_to_strx(0x%" PRIX64 ", -> \"%.*s\", %d) "
3539 "== %" PRIuPTR "\n", 3539 "== %" PRIuPTR "\n",
3540 t->val, (int) rs, buf, (int) b_size - 1, (intptr_t) rs); 3540 t->val, (int) rs, buf, (int) b_size - 1, (uintptr_t) rs);
3541 } 3541 }
3542 } 3542 }
3543 return t_failed; 3543 return t_failed;
@@ -4388,7 +4388,7 @@ check_str_from_uint8_pad (void)
4388 "FAILED: MHD_uint8_to_str_pad(%" PRIu64 ", %d, -> buf," 4388 "FAILED: MHD_uint8_to_str_pad(%" PRIu64 ", %d, -> buf,"
4389 " %d) returned %" PRIuPTR 4389 " %d) returned %" PRIuPTR
4390 ", while expecting 0.\n", t->val, (int) pad, (int) b_size, 4390 ", while expecting 0.\n", t->val, (int) pad, (int) b_size,
4391 (intptr_t) rs); 4391 (uintptr_t) rs);
4392 } 4392 }
4393 } 4393 }
4394 else 4394 else
@@ -4400,7 +4400,7 @@ check_str_from_uint8_pad (void)
4400 "FAILED: MHD_uint8_to_str_pad(%" PRIu64 ", %d, -> buf," 4400 "FAILED: MHD_uint8_to_str_pad(%" PRIu64 ", %d, -> buf,"
4401 " %d) returned %" PRIuPTR 4401 " %d) returned %" PRIuPTR
4402 ", while expecting %d.\n", t->val, (int) pad, 4402 ", while expecting %d.\n", t->val, (int) pad,
4403 (int) b_size, (intptr_t) rs, (int) t->num_of_digt); 4403 (int) b_size, (uintptr_t) rs, (int) t->num_of_digt);
4404 } 4404 }
4405 else if (0 != memcmp (buf, t->str.str, t->num_of_digt)) 4405 else if (0 != memcmp (buf, t->str.str, t->num_of_digt))
4406 { 4406 {
@@ -4409,7 +4409,7 @@ check_str_from_uint8_pad (void)
4409 "FAILED: MHD_uint8_to_str_pad(%" PRIu64 ", %d, " 4409 "FAILED: MHD_uint8_to_str_pad(%" PRIu64 ", %d, "
4410 "-> \"%.*s\", %d) returned %" PRIuPTR ".\n", 4410 "-> \"%.*s\", %d) returned %" PRIuPTR ".\n",
4411 t->val, (int) pad, (int) rs, buf, 4411 t->val, (int) pad, (int) rs, buf,
4412 (int) b_size, (intptr_t) rs); 4412 (int) b_size, (uintptr_t) rs);
4413 } 4413 }
4414 else if (0 != memcmp (buf + rs, "########", sizeof(buf) - rs)) 4414 else if (0 != memcmp (buf + rs, "########", sizeof(buf) - rs))
4415 { 4415 {
@@ -4419,7 +4419,7 @@ check_str_from_uint8_pad (void)
4419 " -> \"%.*s\", %d) returned %" PRIuPTR 4419 " -> \"%.*s\", %d) returned %" PRIuPTR
4420 " and touched data after the resulting string.\n", 4420 " and touched data after the resulting string.\n",
4421 t->val, (int) pad, (int) rs, buf, (int) b_size, 4421 t->val, (int) pad, (int) rs, buf, (int) b_size,
4422 (intptr_t) rs); 4422 (uintptr_t) rs);
4423 } 4423 }
4424 } 4424 }
4425 } 4425 }