]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Constify the 'arg' passed to commands in bsd-kvm.c.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 15 Nov 2017 19:35:15 +0000 (11:35 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 15 Nov 2017 19:35:15 +0000 (11:35 -0800)
gdb/ChangeLog:

* bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
(bsd_kvm_proc_cmd): Likewise.

gdb/ChangeLog
gdb/bsd-kvm.c

index 9b1c3354e9c079268767bee4750248feeceed89e..85fd1420fa4d481c109ee1e628f603d56efe64d0 100644 (file)
@@ -1,3 +1,8 @@
+2017-11-15  John Baldwin  <jhb@FreeBSD.org>
+
+       * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'.
+       (bsd_kvm_proc_cmd): Likewise.
+
 2017-11-15  Simon Marchi  <simon.marchi@ericsson.com>
 
        * tui/tui-win.c (window_name_completer): Replace VEC with
index 3d013b4e1d267f06bdbfbfd1a2f3508099373fa4..7cc73afd6d8653e536228b6446ccd34e35aa2764 100644 (file)
@@ -279,7 +279,7 @@ bsd_kvm_cmd (const char *arg, int fromtty)
 #ifndef HAVE_STRUCT_THREAD_TD_PCB
 
 static void
-bsd_kvm_proc_cmd (char *arg, int fromtty)
+bsd_kvm_proc_cmd (const char *arg, int fromtty)
 {
   CORE_ADDR addr;
 
@@ -308,7 +308,7 @@ bsd_kvm_proc_cmd (char *arg, int fromtty)
 #endif
 
 static void
-bsd_kvm_pcb_cmd (char *arg, int fromtty)
+bsd_kvm_pcb_cmd (const char *arg, int fromtty)
 {
   if (arg == NULL)
     /* i18n: PCB == "Process Control Block".  */