diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2016-11-26 22:05:25 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2016-11-26 22:05:25 -0500 |
commit | 82bbe65a43015a753bec8c64869679a699331a5b (patch) | |
tree | 05d744e624746c338f76279b234844918b56a893 /gdb/ui-out.c | |
parent | e4975d6a9cd8aaf3fb14135b36850964def131d7 (diff) | |
download | gdb-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.c | 3 |
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 */ |