+2017-09-27 Tom Tromey <tom@tromey.com>
+
+ * cli/cli-cmds.c (show_version, show_configuration)
+ (source_command, show_user): Constify.
+
2017-09-27 Tom Tromey <tom@tromey.com>
* target.c (maintenance_print_target_stack): Constify.
static void pwd_command (char *, int);
-static void show_version (char *, int);
-
static void help_command (char *, int);
static void show_command (char *, int);
static void set_debug (char *, int);
-static void show_user (char *, int);
-
static void make_command (char *, int);
static void shell_escape (const char *, int);
}
static void
-show_version (char *args, int from_tty)
+show_version (const char *args, int from_tty)
{
print_gdb_version (gdb_stdout);
printf_filtered ("\n");
}
static void
-show_configuration (char *args, int from_tty)
+show_configuration (const char *args, int from_tty)
{
print_gdb_configuration (gdb_stdout);
}
}
static void
-source_command (char *args, int from_tty)
+source_command (const char *args, int from_tty)
{
- char *file = args;
+ const char *file = args;
int search_path = 0;
scoped_restore save_source_verbose = make_scoped_restore (&source_verbose);
}
static void
-show_user (char *args, int from_tty)
+show_user (const char *args, int from_tty)
{
struct cmd_list_element *c;
extern struct cmd_list_element *cmdlist;