cli-setshow.c: Constify variable

Fixes:

/home/simark/src/binutils-gdb/gdb/cli/cli-setshow.c:390:13: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
  p = strchr (arg, ' ');
             ^
gdb/ChangeLog:

	* cli/cli-setshow.c (do_set_command): Constify p.
This commit is contained in:
Simon Marchi 2015-10-24 22:28:56 -04:00
parent a7dbb7d12b
commit 1650ca1124
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
* cli/cli-setshow.c (do_set_command): Constify p.
2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
* nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Replace

View File

@ -361,7 +361,7 @@ do_set_command (const char *arg, int from_tty, struct cmd_list_element *c)
int len;
int nmatches;
const char *match = NULL;
char *p;
const char *p;
/* If no argument was supplied, print an informative error
message. */