constify gdbserver/server.c
authorPedro Alves <palves@redhat.com>
Mon, 9 Mar 2015 11:58:08 +0000 (11:58 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 20 Mar 2015 17:38:54 +0000 (17:38 +0000)
gdb/gdbserver/

2015-03-20  Pedro Alves  <palves@redhat.com>

* server.c (handle_general_set): Make "req_str" const.

gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c

index cbd199b6c9f134f09a1ded70926646ebfea57756..1572bcb21d020290cd780515c5f78c956b630d37 100644 (file)
@@ -1,3 +1,7 @@
+2015-03-20  Pedro Alves  <palves@redhat.com>
+
+       * server.c (handle_general_set): Make "req_str" const.
+
 2015-03-19  Pedro Alves  <palves@redhat.com>
 
        * linux-low.c (linux_resume_one_lwp): Rename to ...
index 08dbb60710eb2b68eba93fd0b17619077d3d2e49..96b31b8f0304b7f4b5879a480b14e89f9176902e 100644 (file)
@@ -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;