changeset 60481:335c6a2f0c12

(TOTALLY_UNBLOCK_INPUT): Avoid dangling else.
author Kim F. Storm <storm@cua.dk>
date Mon, 07 Mar 2005 10:49:51 +0000
parents 9fb42eb03094
children 29c6b4b182a3
files src/blockinput.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/blockinput.h	Mon Mar 07 09:29:21 2005 +0000
+++ b/src/blockinput.h	Mon Mar 07 10:49:51 2005 +0000
@@ -98,12 +98,12 @@
    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.  */