diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 88286359c7..54cb0b270f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-03-16 Pedro Alves + Yuanhui Zhang + + * stub-termcap.c (tputs): Change prototype. + 2015-03-16 Yuanhui Zhang Pedro Alves diff --git a/gdb/stub-termcap.c b/gdb/stub-termcap.c index cc8632ca19..cecb3fb23a 100644 --- a/gdb/stub-termcap.c +++ b/gdb/stub-termcap.c @@ -29,7 +29,7 @@ extern int tgetent (char *buffer, char *termtype); extern int tgetnum (char *name); extern int tgetflag (char *name); extern char* tgetstr (char *name, char **area); -extern int tputs (char *string, int nlines, int (*outfun) ()); +extern int tputs (char *string, int nlines, int (*outfun) (int)); extern char *tgoto (const char *cap, int col, int row); /* Each of the files below is a minimal implementation of the standard @@ -61,7 +61,7 @@ tgetstr (char *name, char **area) } int -tputs (char *string, int nlines, int (*outfun) ()) +tputs (char *string, int nlines, int (*outfun) (int)) { while (*string) outfun (*string++);