stub-termcap.c: prototype tputs's parameter's parameter, for C++ mode
authorPedro Alves <palves@redhat.com>
Mon, 16 Mar 2015 11:28:23 +0000 (11:28 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 16 Mar 2015 11:36:00 +0000 (11:36 +0000)
 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.

gdb/ChangeLog
gdb/stub-termcap.c

index 88286359c7e5ce11a81fd596d56e48a3ca1a2d14..54cb0b270fa2731e23e5ca11e67340b128e8df0f 100644 (file)
@@ -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>
 
index cc8632ca192d1dd47e745271142dc9dc68b3b536..cecb3fb23a454f8eb2b2850ea03682ac44507fad 100644 (file)
@@ -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++);
This page took 0.046625 seconds and 4 git commands to generate.