]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
testsuite: use size_t with strbuf
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 7 Sep 2024 00:28:19 +0000 (01:28 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Mon, 9 Sep 2024 04:50:08 +0000 (23:50 -0500)
We recently updated the API, but forgot to update the tests.

Fixes: 38943b2 ("shared: use size_t for strbuf")
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/115
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
testsuite/test-strbuf.c

index db80c5373e5287cf58676c4eb91c8f98c394cfed..278ac6d03bed05d117a7d922fd3df38dff7e10fc 100644 (file)
@@ -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);