From: Szabolcs Nagy Date: Sat, 6 Jul 2013 10:47:10 +0000 (+0000) Subject: fix parens in test macros X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=commitdiff_plain;h=dc3c958e63898cf7a72353b5a262e24524a095d6;ds=sidebyside fix parens in test macros --- diff --git a/src/functional/fcntl.c b/src/functional/fcntl.c index 83ea950..a49df60 100644 --- a/src/functional/fcntl.c +++ b/src/functional/fcntl.c @@ -7,7 +7,7 @@ #include "test.h" #define TEST(c, ...) ((c) ? 1 : (error(#c" failed: " __VA_ARGS__),0)) -#define TESTE(c) (errno=0, TEST(c, "errno = %s\n", strerror(errno)) +#define TESTE(c) (errno=0, TEST(c, "errno = %s\n", strerror(errno))) int main(void) { diff --git a/src/functional/socket.c b/src/functional/socket.c index fc01e67..770630e 100644 --- a/src/functional/socket.c +++ b/src/functional/socket.c @@ -9,7 +9,7 @@ #include "test.h" #define TEST(c, ...) ((c) ? 1 : (error(#c" failed: " __VA_ARGS__),0)) -#define TESTE(c) (errno=0, TEST(c, "errno = %s\n", strerror(errno)) +#define TESTE(c) (errno=0, TEST(c, "errno = %s\n", strerror(errno))) int main(void) {