From 9476501135dbbe1eb2e104ff219c7988920d23fc Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Wed, 15 Nov 2017 11:35:15 -0800 Subject: [PATCH] Constify the 'arg' passed to commands in bsd-kvm.c. gdb/ChangeLog: * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'. (bsd_kvm_proc_cmd): Likewise. --- gdb/ChangeLog | 5 +++++ gdb/bsd-kvm.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9b1c3354e9c..85fd1420fa4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-11-15 John Baldwin + + * bsd-kvm.c (bsd_kvm_cmd): Constify 'arg'. + (bsd_kvm_proc_cmd): Likewise. + 2017-11-15 Simon Marchi * tui/tui-win.c (window_name_completer): Replace VEC with diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index 3d013b4e1d2..7cc73afd6d8 100644 --- a/gdb/bsd-kvm.c +++ b/gdb/bsd-kvm.c @@ -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". */ -- 2.30.2