mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
constify tui/tui-io.c
gdb: 2015-03-20 Pedro Alves <palves@redhat.com> * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
This commit is contained in:
@ -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>
|
2015-03-20 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
|
* xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
|
||||||
|
@ -692,7 +692,7 @@ tui_expand_tabs (const char *string, int col)
|
|||||||
/* 2. Copy the original string while replacing TABs with spaces. */
|
/* 2. Copy the original string while replacing TABs with spaces. */
|
||||||
for (s = string; s; )
|
for (s = string; s; )
|
||||||
{
|
{
|
||||||
char *s1 = strpbrk (s, "\t");
|
const char *s1 = strpbrk (s, "\t");
|
||||||
if (s1)
|
if (s1)
|
||||||
{
|
{
|
||||||
if (s1 > s)
|
if (s1 > s)
|
||||||
|
Reference in New Issue
Block a user