diff options
author | Tom Tromey <tom@tromey.com> | 2022-04-01 19:04:48 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-04-15 11:38:13 -0600 |
commit | 4311246bb1f94ca323b0cf74e917d2b8d3a87565 (patch) | |
tree | dd6ce0b7090bf7da5648c9e1b9de82cc2eed3437 /gdb/ui-file.c | |
parent | 111d19818a4a7c96c87e330c6c143fa03bb86819 (diff) | |
download | gdb-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/ui-file.c')
-rw-r--r-- | gdb/ui-file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/ui-file.c b/gdb/ui-file.c index afb12b4..47044e4 100644 --- a/gdb/ui-file.c +++ b/gdb/ui-file.c @@ -60,12 +60,11 @@ ui_file::putstrn (const char *str, int n, int quoter, bool async_safe) printchar (str[i], quoter, async_safe); } -int +void ui_file::putc (int c) { char copy = (char) c; write (©, 1); - return c; } void |