diff options
author | Tom Tromey <tom@tromey.com> | 2017-10-11 17:04:29 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-11-07 13:59:09 -0700 |
commit | 5614fb77203f5ea01edfb2d739e9d4f3d570dc09 (patch) | |
tree | c1be8808b82dfd1c66d589ef444b50c9776c40db /gdb/defs.h | |
parent | 6be9a197d96c3c346271b46ec6270bd719eb9932 (diff) | |
download | gdb-5614fb77203f5ea01edfb2d739e9d4f3d570dc09.zip gdb-5614fb77203f5ea01edfb2d739e9d4f3d570dc09.tar.gz gdb-5614fb77203f5ea01edfb2d739e9d4f3d570dc09.tar.bz2 |
Constify add_path and friends
This constifies add_path, mod_path, and directory_switch.
gdb/ChangeLog
2017-11-07 Tom Tromey <tom@tromey.com>
* 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.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -350,11 +350,11 @@ extern int openp (const char *, int, const char *, int, char **); extern int source_full_path_of (const char *, char **); -extern void mod_path (char *, char **); +extern void mod_path (const char *, char **); -extern void add_path (char *, char **, int); +extern void add_path (const char *, char **, int); -extern void directory_switch (char *, int); +extern void directory_switch (const char *, int); extern char *source_path; |