From 548a358df5654e653329f2c9033ef94aeaa143ad Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 14 Nov 2018 23:07:52 +0100 Subject: Some fixes to libsimple-arg.h, test everything except long arguments, and fix some man pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- test.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test.h') 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)); \ -- cgit v1.2.3-70-g09d2