From: Thomas Roessler Date: Wed, 6 Dec 2000 08:59:47 +0000 (+0000) Subject: Make the BEEP macro a bit safer. From EGE. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60e036e1a3d2d601e00f0fd04939897b4f36de81;p=neomutt Make the BEEP macro a bit safer. From EGE. --- diff --git a/mutt_curses.h b/mutt_curses.h index 4c7e328e6..46b278e5c 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)