From e51d68ddc998f558507217e3c849b16ce94c068f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Mon, 4 Sep 2017 16:15:08 +0200 Subject: [PATCH] afb-ditf: use NULL function feature MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It is now safe to put NULL for function name. Change-Id: I83afc47e38b823e924ae8dab60a7a24065ae0ef6 Signed-off-by: José Bollo --- src/afb-ditf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afb-ditf.c b/src/afb-ditf.c index bc020ba3..63268a85 100644 --- a/src/afb-ditf.c +++ b/src/afb-ditf.c @@ -56,7 +56,7 @@ static void vverbose_cb(void *closure, int level, const char *file, int line, co static void old_vverbose_cb(void *closure, int level, const char *file, int line, const char *fmt, va_list args) { - vverbose_cb(closure, level, file, line, "?", fmt, args); + vverbose_cb(closure, level, file, line, NULL, fmt, args); } static struct afb_event event_make_cb(void *closure, const char *name) @@ -152,7 +152,7 @@ static void hooked_vverbose_cb(void *closure, int level, const char *file, int l static void hooked_old_vverbose_cb(void *closure, int level, const char *file, int line, const char *fmt, va_list args) { - hooked_vverbose_cb(closure, level, file, line, "?", fmt, args); + hooked_vverbose_cb(closure, level, file, line, NULL, fmt, args); } static struct afb_event hooked_event_make_cb(void *closure, const char *name) -- 2.16.6