public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tom@tromey.com>
Subject: [PATCH] Make stdin_event_handler static
Date: Sat, 27 Aug 2022 11:35:34 -0600	[thread overview]
Message-ID: <20220827173534.1479102-1-tom@tromey.com> (raw)

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 02b3786320f..b5b8390c836 100644
--- a/gdb/event-top.c
+++ b/gdb/event-top.c
@@ -481,7 +481,7 @@ get_command_line_buffer (void)
    instead of calling gdb_readline_no_editing_callback, give gdb a
    chance to detect errors and do something.  */
 
-void
+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);
 
-- 
2.34.1


             reply	other threads:[~2022-08-27 17:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-27 17:35 Tom Tromey [this message]
2022-09-20 20:04 ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220827173534.1479102-1-tom@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).