summaryrefslogtreecommitdiff
path: root/common/log.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2020-10-01 04:25:54 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2020-10-01 04:25:54 +0000
commitb4ed613595432ece6802d09bfabad18e09aa26f3 (patch)
treebd2db6b09b756624c1b2babdd12ea05a9dffcdaf /common/log.c
parent7cef6c685d23e4dcdf3f64b0b2ea92151e652db6 (diff)
Notes
Diffstat (limited to 'common/log.c')
-rw-r--r--common/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/log.c b/common/log.c
index 5dcd9a2945fc..96b246efad02 100644
--- a/common/log.c
+++ b/common/log.c
@@ -69,10 +69,10 @@ static int apply_with(int (*)(SCR *, recno_t, CHAR_T *, size_t),
SCR *, recno_t, u_char *, size_t);
/* Try and restart the log on failure, i.e. if we run out of memory. */
-#define LOG_ERR { \
+#define LOG_ERR do { \
log_err(sp, __FILE__, __LINE__); \
return (1); \
-}
+} while (0)
/* offset of CHAR_T string in log needs to be aligned on some systems
* because it is passed to db_set as a string