Constify some functions in memattr.c
gdb/ChangeLog 2017-09-27 Tom Tromey <tom@tromey.com> * memattr.c (enable_mem_command, disable_mem_command) (delete_mem_command): Constify.
This commit is contained in:
parent
ad25e4234a
commit
4465d9db2f
@ -1,3 +1,8 @@
|
||||
2017-09-27 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* memattr.c (enable_mem_command, disable_mem_command)
|
||||
(delete_mem_command): Constify.
|
||||
|
||||
2017-09-27 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* value.c (show_convenience): Constify.
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user