forked from Imagelibrary/binutils-gdb
* utils.c, defs.h (putchar_unfiltered, fputc_unfiltered): Make
argument be an int, not a char. Using a prototype followed by an old-style function definition in a case where an argument is widened is a GCC-ism not supported by the native AIX compiler.
This commit is contained in:
10
gdb/utils.c
10
gdb/utils.c
@@ -1382,25 +1382,29 @@ fputs_filtered (linebuffer, stream)
|
||||
fputs_maybe_filtered (linebuffer, stream, 1);
|
||||
}
|
||||
|
||||
void
|
||||
putc_unfiltered (c)
|
||||
int
|
||||
putchar_unfiltered (c)
|
||||
int c;
|
||||
{
|
||||
char buf[2];
|
||||
|
||||
buf[0] = c;
|
||||
buf[1] = 0;
|
||||
fputs_unfiltered (buf, gdb_stdout);
|
||||
return c;
|
||||
}
|
||||
|
||||
void
|
||||
int
|
||||
fputc_unfiltered (c, stream)
|
||||
int c;
|
||||
FILE * stream;
|
||||
{
|
||||
char buf[2];
|
||||
|
||||
buf[0] = c;
|
||||
buf[1] = 0;
|
||||
fputs_unfiltered (buf, stream);
|
||||
return c;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user