diff src/blockinput.h @ 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 3bb3556e7af0
children a8fa7c632ee4 29e773288013
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.  */