stub-termcap.c: prototype tputs's parameter's parameter, for C++ mode
src/gdb/stub-termcap.c: In function 'int tputs(char*, int, int (*)())': src/gdb/stub-termcap.c:67:22: error: too many arguments to function outfun (*string++); ^ gdb/ChangeLog: 2015-03-16 Pedro Alves <palves@redhat.com> Yuanhui Zhang <asmwarrior@gmail.com> * stub-termcap.c (tputs): Change prototype.
This commit is contained in:
parent
876d1cd7b5
commit
b1a921c8c6
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2015-03-16 Pedro Alves <palves@redhat.com>
|
||||
Yuanhui Zhang <asmwarrior@gmail.com>
|
||||
|
||||
* stub-termcap.c (tputs): Change prototype.
|
||||
|
||||
2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
|
||||
Pedro Alves <palves@redhat.com>
|
||||
|
||||
|
|
|
@ -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++);
|
||||
|
|
Loading…
Add table
Reference in a new issue