From b2333d22e0ead2d6f354c69760b6c6e0db161f02 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 9 Mar 2015 11:58:08 +0000 Subject: [PATCH] constify gdbserver/server.c gdb/gdbserver/ 2015-03-20 Pedro Alves * server.c (handle_general_set): Make "req_str" const. --- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/server.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index cbd199b6c9f..1572bcb21d0 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2015-03-20 Pedro Alves + + * server.c (handle_general_set): Make "req_str" const. + 2015-03-19 Pedro Alves * linux-low.c (linux_resume_one_lwp): Rename to ... diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 08dbb60710e..96b31b8f030 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -591,7 +591,7 @@ handle_general_set (char *own_buf) { char *mode = own_buf + 9; int req = -1; - char *req_str; + const char *req_str; if (strcmp (mode, "0") == 0) req = 0; -- 2.30.2