From 868d1834ce69971de46821b749e74e82f5d3c2c9 Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Tue, 15 Feb 2022 12:32:32 +0000 Subject: [PATCH] gdb: convert callback_handler_installed from int to bool Simple int to bool conversion on callback_handler_installed in event-top.c. There should be no user visible changes after this commit. --- gdb/event-top.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/event-top.c b/gdb/event-top.c index 52b4bfd7d1d..8890c4fae2d 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -301,7 +301,7 @@ change_line_handler (int editing) is typing would lose input. */ /* Whether we've registered a callback handler with readline. */ -static int callback_handler_installed; +static bool callback_handler_installed; /* See event-top.h, and above. */ @@ -311,7 +311,7 @@ gdb_rl_callback_handler_remove (void) gdb_assert (current_ui == main_ui); rl_callback_handler_remove (); - callback_handler_installed = 0; + callback_handler_installed = false; } /* See event-top.h, and above. Note this wrapper doesn't have an @@ -329,7 +329,7 @@ gdb_rl_callback_handler_install (const char *prompt) gdb_assert (!callback_handler_installed); rl_callback_handler_install (prompt, gdb_rl_callback_handler); - callback_handler_installed = 1; + callback_handler_installed = true; } /* See event-top.h, and above. */ -- 2.30.2