This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 7/9] constify tui/tui-io.c
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 20 Mar 2015 16:56:38 +0000
- Subject: [PATCH 7/9] constify tui/tui-io.c
- Authentication-results: sourceware.org; auth=none
- References: <1426870600-17876-1-git-send-email-qiyaoltc at gmail dot com>
From: Pedro Alves <palves@redhat.com>
gdb:
2015-03-20 Pedro Alves <palves@redhat.com>
* tui/tui-io.c (tui_expand_tabs): Make "s1" const.
---
gdb/tui/tui-io.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
1.9.1