From c278e2da0cf9aee161e23771125629bdfe8d5d89 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 20 Mar 2018 19:19:56 +0100 Subject: blogc: common: replace unsigned int with size_t --- tests/blogc/check_renderer.c | 4 ++-- tests/common/check_utils.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/blogc/check_renderer.c b/tests/blogc/check_renderer.c index b0fbb94..369ba3d 100644 --- a/tests/blogc/check_renderer.c +++ b/tests/blogc/check_renderer.c @@ -21,7 +21,7 @@ static bc_slist_t* -create_sources(unsigned int count) +create_sources(size_t count) { const char *s[] = { "BOLA: asd\n" @@ -46,7 +46,7 @@ create_sources(unsigned int count) assert_false(count > 3); bc_error_t *err = NULL; bc_slist_t *l = NULL; - for (unsigned int i = 0; i < count; i++) { + for (size_t i = 0; i < count; i++) { l = bc_slist_append(l, blogc_source_parse(s[i], strlen(s[i]), &err)); assert_null(err); } diff --git a/tests/common/check_utils.c b/tests/common/check_utils.c index dc1eadd..12ef921 100644 --- a/tests/common/check_utils.c +++ b/tests/common/check_utils.c @@ -906,7 +906,7 @@ test_trie_size(void **state) } -static unsigned int counter; +static size_t counter; static char *expected_keys[] = {"chu", "copa", "bola", "bote", "bo", "b", "test", "testa"}; static char *expected_datas[] = {"nda", "bu", "guda", "aba", "haha", "c", "asd", "lol"}; -- cgit v1.2.3-18-g5258