Fix compiler warnings about tputs argument
This commit is contained in:
parent
f4c05c7fcb
commit
19f1105992
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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++);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user