From 4bdbc45d66587384698813d6743d84c255e87235 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Tue, 21 Sep 2021 21:11:19 +0100 Subject: test.c: minor cleanup --- test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test.c b/test.c index c5ce521..ce37818 100644 --- a/test.c +++ b/test.c @@ -24,7 +24,7 @@ struct test { __attribute__((__used__)) = \ { test_##name, desc }; \ static bool test_##name(void) -#define DATA(...) (unsigned char []){ __VA_ARGS__ } +#define DATA(...) ((unsigned char []){ __VA_ARGS__ }) #define CHECK(test) if (!(test)) { puts("! " #test); return false; } #define CHECK_UNPACK(data, fmt, ...) do { \ @@ -44,7 +44,7 @@ struct test { CHECK_UNPACK_STRUCT_s); \ return false; \ } \ -} while(0) +} while (0) #define CHECK_EQUAL(f, a, b) if (a != b) { printf(__FILE__ ":%d %"f" != %"f"\n", __LINE__, a, b); return false; } -- cgit v1.2.3-54-g00ecf