This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 16/67] Constify some functions in memattr.c
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Wed, 20 Sep 2017 23:09:32 -0600
- Subject: [RFA 16/67] Constify some functions in memattr.c
- Authentication-results: sourceware.org; auth=none
- References: <20170921051023.19023-1-tom@tromey.com>
ChangeLog
2017-09-20 Tom Tromey <tom@tromey.com>
* memattr.c (enable_mem_command, disable_mem_command)
(delete_mem_command): Constify.
---
gdb/ChangeLog | 5 +++++
gdb/memattr.c | 6 +++---
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/gdb/memattr.c b/gdb/memattr.c
index c1ac978..5be6397 100644
--- a/gdb/memattr.c
+++ b/gdb/memattr.c
@@ -561,7 +561,7 @@ mem_enable (int num)
}
static void
-enable_mem_command (char *args, int from_tty)
+enable_mem_command (const char *args, int from_tty)
{
int num;
struct mem_region *m;
@@ -606,7 +606,7 @@ mem_disable (int num)
}
static void
-disable_mem_command (char *args, int from_tty)
+disable_mem_command (const char *args, int from_tty)
{
require_user_regions (from_tty);
@@ -659,7 +659,7 @@ mem_delete (int num)
}
static void
-delete_mem_command (char *args, int from_tty)
+delete_mem_command (const char *args, int from_tty)
{
require_user_regions (from_tty);
--
2.9.4