From e1c6d90db82e9c83051edfa07f9920815f827da3 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Fri, 17 Dec 2021 00:06:46 +0100 Subject: [PATCH] fixed macro definition --- ccid/src/ccid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ccid/src/ccid.c b/ccid/src/ccid.c index 3f993da..642fde8 100644 --- a/ccid/src/ccid.c +++ b/ccid/src/ccid.c @@ -155,12 +155,12 @@ ccid_desc = { }; #define debug_sc_result(sc_result) \ -{ \ +do { \ if (sc_result < 0) \ sc_debug(ctx, SC_LOG_DEBUG_VERBOSE, sc_strerror(sc_result)); \ else \ sc_debug(ctx, SC_LOG_DEBUG_NORMAL, sc_strerror(sc_result)); \ -} +} while (0) static int detect_card_presence(void)