From cd46431bbd2f1dd90fbedee9a3bdbff705238c1b Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 9 Mar 2015 11:58:20 +0000 Subject: constify tui/tui-io.c gdb: 2015-03-20 Pedro Alves * tui/tui-io.c (tui_expand_tabs): Make "s1" const. --- gdb/tui/tui-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/tui') 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) -- cgit v1.1