aboutsummaryrefslogtreecommitdiffstats
path: root/common/key.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/key.c')
-rw-r--r--common/key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/key.c b/common/key.c
index 23da0498a757..e71396893fd4 100644
--- a/common/key.c
+++ b/common/key.c
@@ -424,12 +424,12 @@ v_event_append(SCR *sp, EVENT *argp)
}
/* Remove events from the queue. */
-#define QREM(len) { \
+#define QREM(len) do { \
if ((gp->i_cnt -= len) == 0) \
gp->i_next = 0; \
else \
gp->i_next += len; \
-}
+} while (0)
/*
* v_event_get --