aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2016-11-26 22:05:25 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2016-11-26 22:05:25 -0500
commit82bbe65a43015a753bec8c64869679a699331a5b (patch)
tree05d744e624746c338f76279b234844918b56a893 /gdb/ui-out.c
parente4975d6a9cd8aaf3fb14135b36850964def131d7 (diff)
downloadgdb-82bbe65a43015a753bec8c64869679a699331a5b.zip
gdb-82bbe65a43015a753bec8c64869679a699331a5b.tar.gz
gdb-82bbe65a43015a753bec8c64869679a699331a5b.tar.bz2
Fix return value of uo_redirect
The wrapper uo_redirect seems like it should return the return value from of implementation function, since callers rely on it, but it doesn't. gdb/ChangeLog: * ui-out.c (uo_redirect): Return the return value from the implementation function.
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r--gdb/ui-out.c3
1 files changed, 1 insertions, 2 deletions
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 */