aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-04-01 19:04:48 -0600
committerTom Tromey <tom@tromey.com>2022-04-15 11:38:13 -0600
commit4311246bb1f94ca323b0cf74e917d2b8d3a87565 (patch)
treedd6ce0b7090bf7da5648c9e1b9de82cc2eed3437 /gdb/utils.c
parent111d19818a4a7c96c87e330c6c143fa03bb86819 (diff)
downloadgdb-4311246bb1f94ca323b0cf74e917d2b8d3a87565.zip
gdb-4311246bb1f94ca323b0cf74e917d2b8d3a87565.tar.gz
gdb-4311246bb1f94ca323b0cf74e917d2b8d3a87565.tar.bz2
Return void from gdb_putc
I don't think it's very useful to return the character from gdb_putc, so this patch changes it to return void.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 2465bf3..f9dc4f2 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -1838,16 +1838,13 @@ fputs_highlighted (const char *str, const compiled_regex &highlight,
gdb_puts (str, stream);
}
-/* Write character C to gdb_stdout using GDB's paging mechanism and return C.
- May return nonlocally. */
-
-int
+void
gdb_putc (int c)
{
return gdb_stdout->putc (c);
}
-int
+void
gdb_putc (int c, struct ui_file *stream)
{
return stream->putc (c);