summaryrefslogtreecommitdiffstats
path: root/mutt_curses.h
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>2000-12-06 08:59:47 +0000
committerThomas Roessler <roessler@does-not-exist.org>2000-12-06 08:59:47 +0000
commitb22de18458d4a8de2872c38a8dd9f9e1b44e1266 (patch)
tree2c6dea21dc65645afc051b9134d1673af0087b57 /mutt_curses.h
parent21af2452e1337c4157e4bb24fc753a0d4027a0db (diff)
Make the BEEP macro a bit safer. From EGE.
Diffstat (limited to 'mutt_curses.h')
-rw-r--r--mutt_curses.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/mutt_curses.h b/mutt_curses.h
index 4c7e328e..46b278e5 100644
--- a/mutt_curses.h
+++ b/mutt_curses.h
@@ -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)