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:
Tom Tromey
2017-09-12 21:02:08 -06:00
parent fc41a75bee
commit 5e93d4c64b
3 changed files with 7 additions and 2 deletions

View 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 "/..". */