forked from Imagelibrary/binutils-gdb
Constify cd_command
gdb/ChangeLog 2017-09-27 Tom Tromey <tom@tromey.com> * cli/cli-cmds.h (cd_command): Constify. * cli/cli-cmds.c (cd_command): Constify.
This commit is contained in:
@@ -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>
|
2017-09-27 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* thread.c (thread_name_command, thread_find_command): Constify.
|
* thread.c (thread_name_command, thread_find_command): Constify.
|
||||||
|
|||||||
@@ -395,7 +395,7 @@ pwd_command (char *args, int from_tty)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
cd_command (char *dir, int from_tty)
|
cd_command (const char *dir, int from_tty)
|
||||||
{
|
{
|
||||||
int len;
|
int len;
|
||||||
/* Found something other than leading repetitions of "/..". */
|
/* Found something other than leading repetitions of "/..". */
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ int is_complete_command (struct cmd_list_element *cmd);
|
|||||||
|
|
||||||
/* Exported to gdb/main.c */
|
/* 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 */
|
/* Exported to gdb/top.c and gdb/main.c */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user