From: Pedro Alves Date: Mon, 9 Mar 2015 11:58:08 +0000 (+0000) Subject: constify gdbserver/server.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b2333d22e0ead2d6f354c69760b6c6e0db161f02;p=binutils-gdb.git constify gdbserver/server.c gdb/gdbserver/ 2015-03-20 Pedro Alves * server.c (handle_general_set): Make "req_str" const. --- 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;