diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2016-11-26 22:05:42 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2016-11-26 22:05:42 -0500 |
commit | d2c0eef48a1bb331ca08f8f26ff82c5d4086ba0c (patch) | |
tree | 76dc8a66856e9223a9b77bb9a9c55ed49331def8 /gdb/cli-out.c | |
parent | 82bbe65a43015a753bec8c64869679a699331a5b (diff) | |
download | gdb-d2c0eef48a1bb331ca08f8f26ff82c5d4086ba0c.zip gdb-d2c0eef48a1bb331ca08f8f26ff82c5d4086ba0c.tar.gz gdb-d2c0eef48a1bb331ca08f8f26ff82c5d4086ba0c.tar.bz2 |
Constify wrap_here/wrap_hint code path
Constify the data path between ui_out_wrap_hint and the wrap_indent
global, because we can. It's clearer that the argument passed to
wrap_hint is not intended to be modified by the ui_out implementation.
gdb/ChangeLog:
* mi/mi-out.c (mi_wrap_hint): Constify argument.
* cli-out.c (cli_wrap_hint): Likewise.
* ui-out.c (ui_out_wrap_hint, uo_wrap_hint): Likewise.
* ui-out.h (ui_out_wrap_hint, wrap_hint_ftype): Likewise.
* utils.c (wrap_here): Likewise.
(wrap_indent): Constify.
* utils.h (wrap_here): Constify argument.
Diffstat (limited to 'gdb/cli-out.c')
-rw-r--r-- | gdb/cli-out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli-out.c b/gdb/cli-out.c index 0c982cb..d208207 100644 --- a/gdb/cli-out.c +++ b/gdb/cli-out.c @@ -290,7 +290,7 @@ cli_message (struct ui_out *uiout, int verbosity, } static void -cli_wrap_hint (struct ui_out *uiout, char *identstring) +cli_wrap_hint (struct ui_out *uiout, const char *identstring) { cli_out_data *data = (cli_out_data *) ui_out_data (uiout); |