constify tui/tui-io.c
authorPedro Alves <palves@redhat.com>
Mon, 9 Mar 2015 11:58:20 +0000 (11:58 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 20 Mar 2015 17:39:18 +0000 (17:39 +0000)
gdb:

2015-03-20  Pedro Alves  <palves@redhat.com>

* tui/tui-io.c (tui_expand_tabs): Make "s1" const.

gdb/ChangeLog
gdb/tui/tui-io.c

index c1d19a8..f0abc87 100644 (file)
@@ -1,5 +1,9 @@
 2015-03-20  Pedro Alves  <palves@redhat.com>
 
+       * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
+
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
        * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
 
 2015-03-20  Pedro Alves  <palves@redhat.com>
index a8af9b6..c8b8567 100644 (file)
@@ -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)