]> granicus.if.org Git - neomutt/commitdiff
Make the BEEP macro a bit safer. From EGE.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 6 Dec 2000 08:59:47 +0000 (08:59 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 6 Dec 2000 08:59:47 +0000 (08:59 +0000)
mutt_curses.h

index 4c7e328e622960fe189452f94b6708f805e64970..46b278e5cf972f57e61b225730bc7fea6ddaebda 100644 (file)
@@ -56,7 +56,7 @@
 
 #define CLEARLINE(x) move(x,0), clrtoeol()
 #define CENTERLINE(x,y) move(y, (COLS-strlen(x))/2), addstr(x)
-#define BEEP if (option (OPTBEEP)) beep
+#define BEEP() do { if (option (OPTBEEP)) beep(); } while (0)
 
 #if ! (defined(USE_SLANG_CURSES) || defined(HAVE_CURS_SET))
 #define curs_set(x)