[8/8] make directory_command static
Tom Tromey
tromey@redhat.com
Wed Dec 12 16:47:00 GMT 2012
The last one, to make directory_command static.
Tom
* defs.h (directory_command): Don't declare.
* source.c (directory_command): Now static.
---
gdb/defs.h | 2 --
gdb/source.c | 2 +-
2 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/gdb/defs.h b/gdb/defs.h
index 369ee7a..9d8423d 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -361,8 +361,6 @@ extern void mod_path (char *, char **);
extern void add_path (char *, char **, int);
-extern void directory_command (char *, int);
-
extern void directory_switch (char *, int);
extern char *source_path;
diff --git a/gdb/source.c b/gdb/source.c
index 7e14fc6..c9e6ba1 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -391,7 +391,7 @@ init_source_path (void)
/* Add zero or more directories to the front of the source path. */
-void
+static void
directory_command (char *dirname, int from_tty)
{
dont_repeat ();
--
1.7.7.6
More information about the Gdb-patches
mailing list