From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 309F83858C74; Tue, 20 Sep 2022 20:05:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 309F83858C74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663704304; bh=ERtZFy4RrlHSs+HDJdIWmlml4ZIV6sKTEDPq0NQatts=; h=From:To:Subject:Date:From; b=aRH6zDiYksT+7Y/Zcec735JE/z9yyd7uBpBb1lIHcC8ON3Ywn61Y+hO9U9rRvBvPk /BVGScGdtx6oG4RuO3zXDjFSgy6iBfj7JIf1Nio2adSvnisXpQNIrA5gt58tuXJyh4 Hl8leIelgPECXFq0I5x4jB3MpmYSMeMAM1xglQ/k= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Make stdin_event_handler static X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 549dfc51b07c0c749ebde15a3fa855ab496ea18a X-Git-Newrev: 63b3ec661a06acb4fa722c618a6b0003e5e141c3 Message-Id: <20220920200504.309F83858C74@sourceware.org> Date: Tue, 20 Sep 2022 20:05:04 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D63b3ec661a06= acb4fa722c618a6b0003e5e141c3 commit 63b3ec661a06acb4fa722c618a6b0003e5e141c3 Author: Tom Tromey Date: Fri Aug 26 16:48:24 2022 -0600 Make stdin_event_handler static =20 I noticed that stdin_event_handler is only used in event-top.c, so this patch changes it to be 'static'. Diff: --- 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. */ =20 -void +static void stdin_event_handler (int error, gdb_client_data client_data) { struct ui *ui =3D (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);