Remove info_terminal_command declaration, make definition static
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Nov 2019 17:12:02 +0000 (12:12 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Nov 2019 19:29:20 +0000 (14:29 -0500)
The info_terminal_command declaration in inflow.h does not match the
current definition.  It is not needed anyway, as info_terminal_command
is only used locally, so remove it and make the definition static.

gdb/ChangeLog:

* inferior.h (info_terminal_command): Remove declaration.
* inflow.c (info_terminal_command): Make static.

Change-Id: I22c3fcc44244e3cf877b5e27eff189af11c39503

gdb/ChangeLog
gdb/inferior.h
gdb/inflow.c

index 9d875fdd43c1155c8c28de6d671c4a4b8f2371a1..8bba12ad4c45041ec5dd655aaf50c879efda7bf0 100644 (file)
@@ -1,3 +1,8 @@
+2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
+
+       * inferior.h (info_terminal_command): Remove declaration.
+       * inflow.c (info_terminal_command): Make static.
+
 2019-11-26  Simon Marchi  <simon.marchi@efficios.com>
 
        * inferior.c (exit_inferior_silent): Remove.
index 43f0417e62961b12bd4a3208a0a578c27f1ede90..3bd9e8c3d747bec12c6c17a430970655022c0f6c 100644 (file)
@@ -159,8 +159,6 @@ extern void default_print_float_info (struct gdbarch *gdbarch,
 
 extern void child_terminal_info (struct target_ops *self, const char *, int);
 
-extern void info_terminal_command (char *, int);
-
 extern void child_terminal_ours (struct target_ops *self);
 
 extern void child_terminal_ours_for_output (struct target_ops *self);
index 6d645d291a7ef056966b324c5b011a9de29c1cc4..c8661796645a5069064cf20bfdad8b6c41491d65 100644 (file)
@@ -673,7 +673,7 @@ swap_terminal_info (inferior *a, inferior *b)
   std::swap (a->terminal_state, b->terminal_state);
 }
 
-void
+static void
 info_terminal_command (const char *arg, int from_tty)
 {
   target_terminal::info (arg, from_tty);