public inbox for
help / color / mirror / Atom feed
* [binutils-gdb] Make stdin_event_handler static
@ 2022-09-20 20:05 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2022-09-20 20:05 UTC (permalink / raw)
  To: gdb-cvs;h=63b3ec661a06acb4fa722c618a6b0003e5e141c3

commit 63b3ec661a06acb4fa722c618a6b0003e5e141c3
Author: Tom Tromey <>
Date:   Fri Aug 26 16:48:24 2022 -0600

    Make stdin_event_handler static
    I noticed that stdin_event_handler is only used in event-top.c, so
    this patch changes it to be 'static'.

 gdb/event-top.c | 2 +-
 gdb/event-top.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/gdb/event-top.c b/gdb/event-top.c
index 00adbe8fb4f..88c53b720a9 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -497,7 +497,7 @@ get_command_line_buffer (void)
    instead of calling gdb_readline_no_editing_callback, give gdb a
    chance to detect errors and do something.  */
+static void
 stdin_event_handler (int error, gdb_client_data client_data)
   struct ui *ui = (struct ui *) client_data;
diff --git a/gdb/event-top.h b/gdb/event-top.h
index 722e636a110..883ad191115 100644
--- a/gdb/event-top.h
+++ b/gdb/event-top.h
@@ -45,7 +45,6 @@ extern void handle_sigtstp (int sig);
 extern void handle_sigint (int sig);
 extern void handle_sigterm (int sig);
 extern void async_request_quit (void *arg);
-extern void stdin_event_handler (int error, void *client_data);
 extern void async_disable_stdin (void);
 extern void async_enable_stdin (void);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-09-20 20:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-20 20:05 [binutils-gdb] Make stdin_event_handler static Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).