From d7561cbbf27a8ff771f85baf6696aa7645250484 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Wed, 2 Oct 2013 00:46:07 +0000 Subject: 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 --- gdb/cli/cli-cmds.c | 2 +- gdb/cli/cli-setshow.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/cli') diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 4317ea3..886ba7a 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -666,7 +666,7 @@ source_command (char *args, int from_tty) static void echo_command (char *text, int from_tty) { - char *p = text; + const char *p = text; int c; if (text) diff --git a/gdb/cli/cli-setshow.c b/gdb/cli/cli-setshow.c index 3e41fd4..45df6f6 100644 --- a/gdb/cli/cli-setshow.c +++ b/gdb/cli/cli-setshow.c @@ -160,7 +160,7 @@ do_set_command (char *arg, int from_tty, struct cmd_list_element *c) case var_string: { char *new; - char *p; + const char *p; char *q; int ch; -- cgit v1.1