From ed8de7074249a7f60fbc0d01921b007c99d06005 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sat, 7 Sep 2024 01:28:19 +0100 Subject: [PATCH] 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 --- testsuite/test-strbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2