From 513bf031a589d9e2a1a2730adf56f95e5e316a06 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Wed, 14 Oct 2026 17:17:43 +0300 Subject: Remove unused private functions and inline trivial helpers --- tests/hist_test.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/hist_test.c') diff --git a/tests/hist_test.c b/tests/hist_test.c index f05c279..d772c5a 100644 --- a/tests/hist_test.c +++ b/tests/hist_test.c @@ -638,9 +638,8 @@ static void test_fuzz_rows(void) static void test_large_wide_count(void) { struct hist h; - struct hist_view view; + struct hist_view view = {0}; assert(term_hist_init(&h, 600, 4 * HIST_PAGE_SIZE)); - term_hist_view_init(&view); struct cell row[4] = { dc('A'), dc(0x65e5), dc(0), dc('B') }; row[1].flags = CELL_WIDE; row[2].flags = CELL_TRAIL; @@ -669,9 +668,8 @@ static void test_large_wide_count(void) static void test_view_after_prefix_eviction(void) { struct hist h; - struct hist_view view; + struct hist_view view = {0}; assert(term_hist_init(&h, 10, 2 * HIST_PAGE_SIZE)); - term_hist_view_init(&view); char bytes[1000]; for (int i = 0; i < 100; i++) { memset(bytes, 'A' + i % 26, sizeof(bytes)); -- cgit v1.2.3