diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-24 22:28:56 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2015-10-24 22:29:16 -0400 |
commit | 1650ca11248ca377a6c8b6f7e21ec2aa8e7b3fd5 (patch) | |
tree | 3798b61c73b774c760721462e4055857fef71dbd /gdb/cli | |
parent | a7dbb7d12b5f198dc5173f55d0a049236b3c439f (diff) | |
download | gdb-1650ca11248ca377a6c8b6f7e21ec2aa8e7b3fd5.zip gdb-1650ca11248ca377a6c8b6f7e21ec2aa8e7b3fd5.tar.gz gdb-1650ca11248ca377a6c8b6f7e21ec2aa8e7b3fd5.tar.bz2 |
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.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-setshow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c index 1ffb80b..74d2d00 100644 --- a/gdb/cli/cli-setshow.c +++ b/gdb/cli/cli-setshow.c @@ -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. */ |