aboutsummaryrefslogtreecommitdiffstats
path: root/test.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.h b/test.h
index 29e6f13..fe229ef 100644
--- a/test.h
+++ b/test.h
@@ -44,11 +44,11 @@
assert_exit((void)(ptr__ = (EXPR)));\
} while (0)
-#define assert_stderr(FMT, ...)\
+#define assert_stderr(...)\
do {\
char buf__[1024];\
int len__;\
- len__ = sprintf(buf__, FMT, __VA_ARGS__);\
+ len__ = sprintf(buf__, __VA_ARGS__);\
assert(len__ >= 0);\
assert((size_t)len__ == stderr_n);\
assert(!memcmp(buf__, (char **)(void *)(&stderr_buf), stderr_n)); \