From: Vincent Bernat Date: Sat, 27 Nov 2021 23:02:11 +0000 (+0100) Subject: tests: fix compilation warning in marshalling test X-Git-Tag: 1.0.14~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13b873027d65725895b8d179525fbfdb22f1cd85;p=thirdparty%2Flldpd.git tests: fix compilation warning in marshalling test --- diff --git a/tests/check_marshal.c b/tests/check_marshal.c index 4f934462..195078f8 100644 --- a/tests/check_marshal.c +++ b/tests/check_marshal.c @@ -412,7 +412,7 @@ START_TEST(test_too_small_unmarshal) { struct struct_nestedpointers *destination; void *buffer; size_t len, len2; - int i, j; + size_t i, j; log_register(donothing); @@ -426,8 +426,8 @@ START_TEST(test_too_small_unmarshal) { for (i = 0; i < len; i++) { len2 = struct_nestedpointers_unserialize(buffer, 1, &destination); fail_unless(len2 == 0, - "Should not be able to deserialize, too small (%d<%d)", - i, len); + "Should not be able to deserialize, too small (%zu<%zu)", + i, len); } } len2 = struct_nestedpointers_unserialize(buffer, len + 5, &destination);