X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=status.c;h=f95eb326f16dbfc1d5ae6eabeb6890700288ccd5;hb=49f1156410e9a037404101696d37b2c0d5c67564;hp=429a718c6d07791a342f9ae75a0ae47c84e27ae4;hpb=19457d3e9b0b827930530f5e8f4f04dd745d685f;p=apps%2Fmadmutt.git diff --git a/status.c b/status.c index 429a718..f95eb32 100644 --- a/status.c +++ b/status.c @@ -11,6 +11,8 @@ # include "config.h" #endif +#include + #include "mutt.h" #include "mutt_menu.h" #include "mutt_curses.h" @@ -62,7 +64,8 @@ static const char *status_format_str (char *buf, size_t buflen, char op, const char *elsestring, unsigned long data, format_flag flags) { - char fmt[SHORT_STRING], tmp[SHORT_STRING], *cp, *p; + char fmt[SHORT_STRING], tmp[SHORT_STRING]; + const char *cp, *p; int count, optional = (flags & M_FORMAT_OPTIONAL); MUTTMENU *menu = (MUTTMENU *) data;