diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-16 17:49:41 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-25 07:48:39 -0600 |
commit | 29d2c474f5a397017455da82e6dbc72629186359 (patch) | |
tree | 9fb0ebae2a874c669d628e616d08ff8fe9e19d22 /gdb/tui/tui-winsource.c | |
parent | 152f3f4b3342ae16df5ae0640896b8cea008c893 (diff) | |
download | gdb-29d2c474f5a397017455da82e6dbc72629186359.zip gdb-29d2c474f5a397017455da82e6dbc72629186359.tar.gz gdb-29d2c474f5a397017455da82e6dbc72629186359.tar.bz2 |
Change tui_alloc_source_buffer return type to void
tui_alloc_source_buffer can't actually fail, so change its return type
to void and update the callers.
gdb/ChangeLog
2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.h (tui_alloc_source_buffer): Change return
type to void.
* tui/tui-winsource.c (tui_alloc_source_buffer): Change return
type to void.
* tui/tui-source.c (tui_set_source_content): Update.
* tui/tui-disasm.c (tui_set_disassem_content): Update.
Diffstat (limited to 'gdb/tui/tui-winsource.c')
-rw-r--r-- | gdb/tui/tui-winsource.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 1ec9cec..209d33d 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -589,7 +589,7 @@ tui_update_exec_info (struct tui_win_info *win_info) tui_show_exec_info_content (win_info); } -enum tui_status +void tui_alloc_source_buffer (struct tui_win_info *win_info) { int i, line_width, max_lines; @@ -608,8 +608,6 @@ tui_alloc_source_buffer (struct tui_win_info *win_info) win_info->content[i]->which_element.source.line = (char *) xmalloc (line_width); } - - return TUI_SUCCESS; } |