aboutsummaryrefslogtreecommitdiff
path: root/gdb/bsd-kvm.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2017-11-15 11:35:15 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2017-11-15 11:35:15 -0800
commit9476501135dbbe1eb2e104ff219c7988920d23fc (patch)
tree00754a78b9c7c1ba1cef13cdb981f1415467a602 /gdb/bsd-kvm.c
parent625ad4406d301f670b823a7767528f3ba7e292c6 (diff)
downloadgdb-9476501135dbbe1eb2e104ff219c7988920d23fc.zip
gdb-9476501135dbbe1eb2e104ff219c7988920d23fc.tar.gz
gdb-9476501135dbbe1eb2e104ff219c7988920d23fc.tar.bz2
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.
Diffstat (limited to 'gdb/bsd-kvm.c')
-rw-r--r--gdb/bsd-kvm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c
index 3d013b4..7cc73af 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". */