From 0bd556c581ac462ca41b3cb533323fc3587051e1 Mon Sep 17 00:00:00 2001 From: Yongun Seong Date: Mon, 25 Sep 2023 15:38:06 +0900 Subject: [PATCH] [utest-gnc-pricedb] fix test failure due to callback type mismatch --- libgnucash/engine/test/utest-gnc-pricedb.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libgnucash/engine/test/utest-gnc-pricedb.c b/libgnucash/engine/test/utest-gnc-pricedb.c index fe89c61edd5..d22aa7e6cc7 100644 --- a/libgnucash/engine/test/utest-gnc-pricedb.c +++ b/libgnucash/engine/test/utest-gnc-pricedb.c @@ -1499,14 +1499,17 @@ gboolean gnc_pricedb_foreach_price(GNCPriceDB *db,// C: 2 in 2 Local: 6:0:0 */ -static void prepend_price_time64 (GNCPrice *p, GList **lst) +static gboolean prepend_price_time64 (GNCPrice *p, GList **lst) { *lst = g_list_prepend (*lst, GUINT_TO_POINTER(gnc_price_get_time64 (p))); + return TRUE; } -static void inc_counter (GNCPrice *p, guint *count) +static gboolean inc_counter (GNCPrice *p, guint *count) { + (*count)++; + return TRUE; } static void