X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-ui%2Fcurs_lib.c;h=0bbe168de2dbc87d0b58b039166626aae8169034;hb=b241f87351127948f83842d537c1a76536bf61c1;hp=1cc7aa6bd98eeff2c7948d004b5eaa9fed3886ab;hpb=ac813896ca32d850febc2d95065ac4fa040f11f9;p=apps%2Fmadmutt.git diff --git a/lib-ui/curs_lib.c b/lib-ui/curs_lib.c index 1cc7aa6..0bbe168 100644 --- a/lib-ui/curs_lib.c +++ b/lib-ui/curs_lib.c @@ -34,7 +34,6 @@ #include #include #include -#include #include #include @@ -221,11 +220,11 @@ int mutt_yesorno (const char *msg, int def) #ifdef HAVE_LANGINFO_YESEXPR answer[0] = ch.ch; - if (reyes_ok ? (regexec (&reyes, answer, 0, 0, 0) == 0) : + if (reyes_ok ? (regexec (&reyes, answer, 0, 0, 0) == 0) : tolower (ch.ch) == *yes) #else - if ( + if (tolower (ch.ch) == *yes) #endif - (tolower (ch.ch) == *yes)) { + { def = M_YES; break; } @@ -236,8 +235,7 @@ int mutt_yesorno (const char *msg, int def) (tolower (ch.ch) == *no)) { def = M_NO; break; - } - else { + } else { BEEP (); } } @@ -281,7 +279,6 @@ void mutt_curses_error (const char *fmt, ...) vsnprintf (Errorbuf, sizeof (Errorbuf), fmt, ap); va_end (ap); - debug_print (1, ("%s\n", Errorbuf)); mutt_format_string (TmpErrorbuf, sizeof (TmpErrorbuf), 0, COLS - 2, 0, 0, Errorbuf, sizeof (Errorbuf), 0); snprintf (Errorbuf, sizeof (Errorbuf), "%s", TmpErrorbuf); /* overkill */ @@ -380,8 +377,6 @@ void mutt_endwin (const char *msg) void _mutt_perror (const char *s, const char* filename, int line) { char *p = strerror (errno); - - debug_print (1, ("%s: %s (errno = %d)\n", s, p ? p : "unknown error", errno)); mutt_error ("%s: %s (errno = %d) from %s:%i", s, p ? p : _("unknown error"), errno, filename, line); }