From 23534ab174ffadd63bbdb2e0626770753eff7c3b Mon Sep 17 00:00:00 2001 From: dragonmux Date: Fri, 21 Jan 2022 21:41:37 -0500 Subject: [PATCH] target: Cleanup in target_new() for the check_error callback --- src/target/target.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/target/target.c b/src/target/target.c index c8a10a5..6e8ba24 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -34,9 +34,9 @@ static bool nop_function(void) return true; } -static int null_function(void) +static bool false_function(void) { - return 0; + return false; } target *target_new(void) @@ -68,7 +68,7 @@ target *target_new(void) t->halt_request = (void*)nop_function; t->halt_poll = (void*)nop_function; t->halt_resume = (void*)nop_function; - t->check_error = (void*)null_function; + t->check_error = (void*)false_function; t->target_storage = NULL;