X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=curs_lib.c;h=451a6b1d8dce7db126d4778e3904142f3930b383;hp=002c063b70a8164a654e3335fba1b9b0ab6fa679;hb=4761fa78a6dfc9437caa6e6e0aac806e50e01c83;hpb=eed5352e46df93f8921d2e6dfdc95b027bad6e1e diff --git a/curs_lib.c b/curs_lib.c index 002c063..451a6b1 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "mutt.h" #include "enter.h" @@ -298,7 +299,6 @@ void mutt_curses_error (const char *fmt, ...) set_option (OPTMSGERR); } -#ifdef USE_SOCKET void mutt_progress_bar (progress_t* progress, long pos) { char posstr[SHORT_STRING]; @@ -326,7 +326,6 @@ void mutt_progress_bar (progress_t* progress, long pos) { mutt_message ("%s %s", progress->msg, posstr); } } -#endif void mutt_curses_message (const char *fmt, ...) { @@ -583,7 +582,7 @@ int mutt_addwch (wchar_t wc) */ void mutt_format_string (char *dest, size_t destlen, - int min_width, int max_width, + unsigned int min_width, int max_width, int right_justify, char m_pad_char, const char *s, size_t n, int arboreal) { @@ -620,7 +619,7 @@ void mutt_format_string (char *dest, size_t destlen, destlen -= k2; } } - w = (int) destlen < min_width ? destlen : min_width; + w = destlen < min_width ? destlen : min_width; if (w <= 0) *p = '\0'; else if (right_justify) {