From 5614fb77203f5ea01edfb2d739e9d4f3d570dc09 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 11 Oct 2017 17:04:29 -0600 Subject: Constify add_path and friends This constifies add_path, mod_path, and directory_switch. gdb/ChangeLog 2017-11-07 Tom Tromey * source.c (directory_switch, mod_path, add_path): Constify. * defs.h (add_path, mod_path, directory_switch): Constify. * mi/mi-cmd-env.c (env_mod_path): Constify. --- gdb/mi/mi-cmd-env.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/mi') diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c index 0d08bb8..436462a 100644 --- a/gdb/mi/mi-cmd-env.c +++ b/gdb/mi/mi-cmd-env.c @@ -32,8 +32,6 @@ #include "top.h" #include -static void env_mod_path (char *dirname, char **which_path); - static const char path_var_name[] = "PATH"; static char *orig_path = NULL; @@ -94,7 +92,7 @@ mi_cmd_env_cd (const char *command, char **argv, int argc) } static void -env_mod_path (char *dirname, char **which_path) +env_mod_path (const char *dirname, char **which_path) { if (dirname == 0 || dirname[0] == '\0') return; -- cgit v1.1