From 3a5a268bd7e368f183f0b3a127f3e3c39bc2340f Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 25 Nov 2020 14:42:56 +0000 Subject: [PATCH] changed the return type of xma dumper to void --- hawk/bin/main.c | 1 - hawk/lib/hawk-xma.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hawk/bin/main.c b/hawk/bin/main.c index 01963551..d492b583 100644 --- a/hawk/bin/main.c +++ b/hawk/bin/main.c @@ -1056,7 +1056,6 @@ static int xma_dumper_without_hawk (void* ctx, const hawk_bch_t* fmt, ...) va_start (ap, fmt); vfprintf (stderr, fmt, ap); va_end (ap); - return 0; } #if defined(HAWK_BUILD_DEBUG) diff --git a/hawk/lib/hawk-xma.h b/hawk/lib/hawk-xma.h index c2e50388..dc761645 100644 --- a/hawk/lib/hawk-xma.h +++ b/hawk/lib/hawk-xma.h @@ -123,8 +123,8 @@ struct hawk_xma_t * The hawk_xma_dumper_t type defines a printf-like output function * for hawk_xma_dump(). */ -typedef int (*hawk_xma_dumper_t) ( - void* ctx, +typedef void (*hawk_xma_dumper_t) ( + void* ctx, const hawk_bch_t* fmt, ... );