fix parens in test macros
authorSzabolcs Nagy <nsz@port70.net>
Sat, 6 Jul 2013 10:47:10 +0000 (10:47 +0000)
committerSzabolcs Nagy <nsz@port70.net>
Sat, 6 Jul 2013 10:47:10 +0000 (10:47 +0000)
src/functional/fcntl.c
src/functional/socket.c

index 83ea950..a49df60 100644 (file)
@@ -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)
 {
index fc01e67..770630e 100644 (file)
@@ -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)
 {