]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Constify cd_command
authorTom Tromey <tom@tromey.com>
Wed, 13 Sep 2017 03:02:08 +0000 (21:02 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:51 +0000 (08:44 -0600)
gdb/ChangeLog
2017-09-27  Tom Tromey  <tom@tromey.com>

* cli/cli-cmds.h (cd_command): Constify.
* cli/cli-cmds.c (cd_command): Constify.

gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/cli/cli-cmds.h

index 697a161a979d8a81536d552c5184903103554c49..ce85881caaebe36da88c6a6bfa16242e4fd47f93 100644 (file)
@@ -1,3 +1,8 @@
+2017-09-27  Tom Tromey  <tom@tromey.com>
+
+       * cli/cli-cmds.h (cd_command): Constify.
+       * cli/cli-cmds.c (cd_command): Constify.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * thread.c (thread_name_command, thread_find_command): Constify.
index c00994140f804fff97ae3fa8e1ec180ed9305d4d..dde67ee2b3dc483ee1033bff59e06b39f18ed5a0 100644 (file)
@@ -395,7 +395,7 @@ pwd_command (char *args, int from_tty)
 }
 
 void
-cd_command (char *dir, int from_tty)
+cd_command (const char *dir, int from_tty)
 {
   int len;
   /* Found something other than leading repetitions of "/..".  */
index 1122a97b3493b42a581ecf0c52987841ebed2c64..34d19f50c6e3eaec46ceae1caf3f5abf11db45b5 100644 (file)
@@ -110,7 +110,7 @@ int is_complete_command (struct cmd_list_element *cmd);
 
 /* Exported to gdb/main.c */
 
-extern void cd_command (char *, int);
+extern void cd_command (const char *, int);
 
 /* Exported to gdb/top.c and gdb/main.c */