summaryrefslogtreecommitdiffstats
path: root/rsyslog.h
diff options
context:
space:
mode:
Diffstat (limited to 'rsyslog.h')
-rw-r--r--rsyslog.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/rsyslog.h b/rsyslog.h
index bc705819..33c14ae4 100644
--- a/rsyslog.h
+++ b/rsyslog.h
@@ -82,9 +82,11 @@ typedef enum rsRetVal_ rsRetVal; /**< friendly type for global return value */
/* macro below is to be used if we need our own handling, eg for cleanup */
#define CHKiRet_Hdlr(code) if((iRet = code) != RS_RET_OK)
#define DEFiRet rsRetVal iRet = RS_RET_OK
-#define ABORT_FINALIZE(errCode) \
- iRet = errCode;\
- goto finalize_it;
+#define ABORT_FINALIZE(errCode) \
+ do { \
+ iRet = errCode; \
+ goto finalize_it; \
+ } while (0)
/** Object ID. These are for internal checking. Each
* object is assigned a specific ID. This is contained in