diff --git a/lib/libncurses/curses.h b/lib/libncurses/curses.h index bafef7539cc1..74289b96cb52 100644 --- a/lib/libncurses/curses.h +++ b/lib/libncurses/curses.h @@ -253,7 +253,7 @@ extern int tputs(const char *,int,int (*)(int)); extern int typeahead(int); extern int ungetch(int); extern int vidattr(chtype); -extern int vidputs(chtype,int (*)(char)); +extern int vidputs(chtype,int (*)(int)); extern int vwscanw(WINDOW *,char *,va_list); extern int vwprintw(WINDOW *,char *,va_list); extern int waddch(WINDOW *,chtype); diff --git a/lib/libncurses/curses.priv.h b/lib/libncurses/curses.priv.h index 4652ff502b3d..ed747ea0ba86 100644 --- a/lib/libncurses/curses.priv.h +++ b/lib/libncurses/curses.priv.h @@ -46,7 +46,7 @@ extern char *visbuf(const char *); #define TR(n, a) #endif -extern int _outch(char); +extern int _outch(int); extern void init_acs(void); extern void tstp(int); extern WINDOW *makenew(int, int, int, int); diff --git a/lib/libncurses/lib_doupdate.c b/lib/libncurses/lib_doupdate.c index 9ef3667e642e..fcab8e5b0d74 100644 --- a/lib/libncurses/lib_doupdate.c +++ b/lib/libncurses/lib_doupdate.c @@ -95,7 +95,7 @@ static inline void GoTo(int row, int col) SP->_curscol = col; } -int _outch(char ch) +int _outch(int ch) { if (SP != NULL) putc(ch, SP->_ofp); @@ -183,7 +183,7 @@ sigaction_t act, oact; static int move_right_cost = -1; -static int countc(char c) +static int countc(int c) { return(move_right_cost++); } diff --git a/lib/libncurses/lib_vidattr.c b/lib/libncurses/lib_vidattr.c index 9151e308604b..b2fee871b7c4 100644 --- a/lib/libncurses/lib_vidattr.c +++ b/lib/libncurses/lib_vidattr.c @@ -44,7 +44,7 @@ #include "curses.priv.h" #include "terminfo.h" -static void do_color(int pair, int (*outc)(char)) +static void do_color(int pair, int (*outc)(int)) { int fg, bg; @@ -69,7 +69,7 @@ int fg, bg; #define previous_attr SP->_current_attr -int vidputs(chtype newmode, int (*outc)(char)) +int vidputs(chtype newmode, int (*outc)(int)) { chtype turn_off = (~newmode & previous_attr) & ~A_COLOR; chtype turn_on = (newmode & ~previous_attr) & ~A_COLOR;