projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e28566f
)
constify tui/tui-io.c
author
Pedro Alves
<palves@redhat.com>
Mon, 9 Mar 2015 11:58:20 +0000
(11:58 +0000)
committer
Yao 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
patch
|
blob
|
history
gdb/tui/tui-io.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index c1d19a829aa294cf41af3977bb348994ca8cf89c..f0abc8706f43a45e746e26c705f74316607ee229 100644
(file)
--- a/
gdb/ChangeLog
+++ b/
gdb/ChangeLog
@@
-1,3
+1,7
@@
+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.
diff --git
a/gdb/tui/tui-io.c
b/gdb/tui/tui-io.c
index a8af9b611620f24a02108b7965b2433eea0648fa..c8b85672c0fb529fcf0d04c20b021b3f9dd202ab 100644
(file)
--- 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");
+ c
onst c
har *s1 = strpbrk (s, "\t");
if (s1)
{
if (s1 > s)