aboutsummaryrefslogtreecommitdiff
path: root/include/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/util.h')
-rw-r--r--include/util.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/util.h b/include/util.h
index e19dbe8..8d735bb 100644
--- a/include/util.h
+++ b/include/util.h
@@ -1,6 +1,7 @@
#include <stdio.h>
-#define err_ret(r, fmt, ...) {\
- fprintf(stderr, "[%s:%d] " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__); \
- return r; \
-}
+#define err_ret(r, fmt, ...) do { \
+ fprintf(stderr, "[%s:%d] " fmt "\n", \
+ __FILE__, __LINE__, ##__VA_ARGS__); \
+ return r; \
+} while (0)