From: Emil Velikov Date: Sat, 7 Sep 2024 00:28:19 +0000 (+0100) Subject: testsuite: use size_t with strbuf X-Git-Tag: v34~382 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed8de7074249a7f60fbc0d01921b007c99d06005;p=thirdparty%2Fkmod.git testsuite: use size_t with strbuf We recently updated the API, but forgot to update the tests. Fixes: 38943b2 ("shared: use size_t for strbuf") Signed-off-by: Emil Velikov Link: https://github.com/kmod-project/kmod/pull/115 Signed-off-by: Lucas De Marchi --- diff --git a/testsuite/test-strbuf.c b/testsuite/test-strbuf.c index db80c537..278ac6d0 100644 --- a/testsuite/test-strbuf.c +++ b/testsuite/test-strbuf.c @@ -50,7 +50,7 @@ static int test_strbuf_pushchars(const struct test *t) struct strbuf buf; char *result1, *saveptr = NULL, *str, *result2; const char *c; - int lastwordlen = 0; + size_t lastwordlen = 0; strbuf_init(&buf); str = strdup(TEXT);