diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-15 23:24:24 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-03-15 23:24:24 +0000 |
commit | a7f6f40b3c489018d8038e2e1da58cd1e8540436 (patch) | |
tree | 03b6eaaa99fb6370f680c3cb9b6db198f646ed12 /gdb/utils.c | |
parent | a64bbacfc88b524f794ed53660739520693c07ff (diff) | |
download | gdb-a7f6f40b3c489018d8038e2e1da58cd1e8540436.zip gdb-a7f6f40b3c489018d8038e2e1da58cd1e8540436.tar.gz gdb-a7f6f40b3c489018d8038e2e1da58cd1e8540436.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 8bdd141..0d51b7a 100644 --- a/gdb/utils.c +++ b/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; } |