Change return type of ui_out redirect to void
authorSimon Marchi <simon.marchi@ericsson.com>
Tue, 10 Jan 2017 16:30:47 +0000 (11:30 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 10 Jan 2017 16:32:04 +0000 (11:32 -0500)
commit7becfd03bad526c02216eeb5ec2bebae694b1af1
tree1cf43c4bbc218d31611124c6c56583a43086ca14
parent98461510d3a8cefa6603980294bfc647cddcab97
Change return type of ui_out redirect to void

All implementations of redirect/do_redirect in the ui_out subsystem
always return 0 (success).  We can therefore clean it up and make them
return void.

gdb/ChangeLog:

* cli-out.c (cli_ui_out::do_redirect): Change return type to
void.
* cli-out.h (cli_ui_out::do_redirect): Likewise.
* mi/mi-out.c (mi_ui_out::do_redirect): Likewise.
* mi/mi-out.h (mi_ui_out::do_redirect): Likewise.
* ui-out.c (ui_out::redirect): Likewise.
* ui-out.h (ui_out::redirect, ui_out::do_redirect): Likewise.
* cli/cli-logging.c (set_logging_redirect): Update call site of
ui_out::redirect.
(handle_redirections): Likewise.
* scm-ports.c (ioscm_with_output_to_port_worker): Likewise.
* top.c (execute_command_to_string): Likewise.
* utils.c (do_ui_out_redirect_pop): Likewise.
gdb/ChangeLog
gdb/cli-out.c
gdb/cli-out.h
gdb/cli/cli-logging.c
gdb/guile/scm-ports.c
gdb/mi/mi-out.c
gdb/mi/mi-out.h
gdb/top.c
gdb/ui-out.c
gdb/ui-out.h
gdb/utils.c