aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2021-09-21 21:11:19 +0100
committerTomasz Kramkowski <tk@the-tk.com>2021-09-21 21:11:19 +0100
commit4bdbc45d66587384698813d6743d84c255e87235 (patch)
treedfc097e24cb9359d069907978c7b614858860527
parent251047496c607548f8200ebf648039fa821e719b (diff)
downloadpack-4bdbc45d66587384698813d6743d84c255e87235.tar.gz
pack-4bdbc45d66587384698813d6743d84c255e87235.tar.xz
pack-4bdbc45d66587384698813d6743d84c255e87235.zip
test.c: minor cleanup
-rw-r--r--test.c4
1 files 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; }