summaryrefslogtreecommitdiff
path: root/gdb/m2-exp.y
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2013-10-02 00:46:06 +0000
committerKeith Seitz <keiths@redhat.com>2013-10-02 00:46:06 +0000
commitc85cddc51d5d9e4423509a2dc7cf3d9809451b49 (patch)
treef4d948ed91161a563c7dd24c56197f183a50a24a /gdb/m2-exp.y
parent9cb8e9ab9d225807a721e2b6d520e663fc2fbb81 (diff)
downloadgdb-c85cddc51d5d9e4423509a2dc7cf3d9809451b49.tar.gz
Constification of parse_linespec and fallout:
https://sourceware.org/ml/gdb-patches/2013-09/msg01017.html https://sourceware.org/ml/gdb-patches/2013-09/msg01018.html https://sourceware.org/ml/gdb-patches/2013-09/msg01019.html https://sourceware.org/ml/gdb-patches/2013-09/msg01020.html
Diffstat (limited to 'gdb/m2-exp.y')
-rw-r--r--gdb/m2-exp.y6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y
index eaa5a23ac89..0002e451ce1 100644
--- a/gdb/m2-exp.y
+++ b/gdb/m2-exp.y
@@ -662,7 +662,7 @@ type
static int
parse_number (int olen)
{
- char *p = lexptr;
+ const char *p = lexptr;
LONGEST n = 0;
LONGEST prevn = 0;
int c,i,ischar=0;
@@ -814,7 +814,7 @@ yylex (void)
int c;
int namelen;
int i;
- char *tokstart;
+ const char *tokstart;
char quote;
retry:
@@ -927,7 +927,7 @@ yylex (void)
{
/* It's a number. */
int got_dot = 0, got_e = 0;
- char *p = tokstart;
+ const char *p = tokstart;
int toktype;
for (++p ;; ++p)