From dc3c958e63898cf7a72353b5a262e24524a095d6 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 6 Jul 2013 10:47:10 +0000 Subject: [PATCH] fix parens in test macros --- src/functional/fcntl.c | 2 +- src/functional/socket.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.20.1