diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/ui-out.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 21d10c4..d6d5dc6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2016-11-26 Simon Marchi <simon.marchi@polymtl.ca> + * ui-out.c (uo_redirect): Return the return value from the + implementation function. + +2016-11-26 Simon Marchi <simon.marchi@polymtl.ca> + * ui-out.c (ui_out_destroy, uo_data_destroy): Remove. * ui-out.h (ui_out_destroy): Remove. diff --git a/gdb/ui-out.c b/gdb/ui-out.c index 407c349..7f36545 100644 --- a/gdb/ui-out.c +++ b/gdb/ui-out.c @@ -703,8 +703,7 @@ uo_redirect (struct ui_out *uiout, struct ui_file *outstream) { if (!uiout->impl->redirect) return -1; - uiout->impl->redirect (uiout, outstream); - return 0; + return uiout->impl->redirect (uiout, outstream); } /* local functions */ |