aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-03-09 11:58:20 +0000
committerYao Qi <yao.qi@linaro.org>2015-03-20 17:39:18 +0000
commitcd46431bbd2f1dd90fbedee9a3bdbff705238c1b (patch)
treeaea9c92099416efac05a66e7c3ca51dde7a76247 /gdb/tui
parente28566f7d022e672bc7032d4951112359ad66d77 (diff)
downloadgdb-cd46431bbd2f1dd90fbedee9a3bdbff705238c1b.zip
gdb-cd46431bbd2f1dd90fbedee9a3bdbff705238c1b.tar.gz
gdb-cd46431bbd2f1dd90fbedee9a3bdbff705238c1b.tar.bz2
constify tui/tui-io.c
gdb: 2015-03-20 Pedro Alves <palves@redhat.com> * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c
index a8af9b6..c8b8567 100644
--- a/gdb/tui/tui-io.c
+++ b/gdb/tui/tui-io.c
@@ -692,7 +692,7 @@ tui_expand_tabs (const char *string, int col)
/* 2. Copy the original string while replacing TABs with spaces. */
for (s = string; s; )
{
- char *s1 = strpbrk (s, "\t");
+ const char *s1 = strpbrk (s, "\t");
if (s1)
{
if (s1 > s)