summaryrefslogtreecommitdiff
path: root/src/blockinput.h
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2005-03-07 10:49:51 +0000
committerKim F. Storm <storm@cua.dk>2005-03-07 10:49:51 +0000
commit6bf40bf0223741f33380ccaf7d9da0458494f00c (patch)
tree0aa68f4606032d32cf403b5e4641eb0130d96340 /src/blockinput.h
parent2e87e8f20728c38be7028765178c721c384109fd (diff)
downloademacs-6bf40bf0223741f33380ccaf7d9da0458494f00c.tar.gz
(TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
Diffstat (limited to 'src/blockinput.h')
-rw-r--r--src/blockinput.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockinput.h b/src/blockinput.h
index 74ef7603f40..6aa865ea9be 100644
--- a/src/blockinput.h
+++ b/src/blockinput.h
@@ -98,12 +98,12 @@ extern int pending_atimers;
and also reinvoke any pending signal. */
#define TOTALLY_UNBLOCK_INPUT \
- if (interrupt_input_blocked != 0) \
+ do if (interrupt_input_blocked != 0) \
{ \
interrupt_input_blocked = 1; \
UNBLOCK_INPUT; \
} \
- else
+ while (0)
/* Undo any number of BLOCK_INPUT calls down to level LEVEL,
and also (if the level is now 0) reinvoke any pending signal. */