diff options
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 9fea0f7..41ad35f 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -904,8 +904,7 @@ class scoped_input_handler public: scoped_input_handler () - : m_quit_handler (make_scoped_restore (&quit_handler, - default_quit_handler)), + : m_quit_handler (&quit_handler, default_quit_handler), m_ui (NULL) { target_terminal::ours (); @@ -928,7 +927,7 @@ private: target_terminal::scoped_restore_terminal_state m_term_state; /* Save and restore the quit handler. */ - scoped_restore m_quit_handler; + scoped_restore_tmpl<quit_handler_ftype *> m_quit_handler; /* The saved UI, if non-NULL. */ struct ui *m_ui; |