Constify some functions in memattr.c
authorTom Tromey <tom@tromey.com>
Sun, 10 Sep 2017 03:30:40 +0000 (21:30 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:26 +0000 (08:44 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* memattr.c (enable_mem_command, disable_mem_command)
(delete_mem_command): Constify.

gdb/ChangeLog
gdb/memattr.c

index b31d87b035c909b8e2b004932bf8c8ecb7439f9e..1d8c44ce08848025d92dde93748aeaf6cf2cbd9c 100644 (file)
@@ -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.
index c1ac978d9fb9a2836a99b164769dbdd2a7513ce0..5be6397bd0e01f5cd8f188800f442baf3d6f28a6 100644 (file)
@@ -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);
 
This page took 0.032516 seconds and 4 git commands to generate.