From 335fee3f36bd491197f8bd987baa6a7390f1750d Mon Sep 17 00:00:00 2001 From: zwelch Date: Sat, 30 May 2009 22:23:12 +0000 Subject: Encapsulate the global "jtag" jtag_interface pointer: - Add jtag_interface_quit, factored from exit_handler() in openocd.c. - Remove its extern declaration. - Add static keyword to its definition. git-svn-id: svn://svn.berlios.de/openocd/trunk@1952 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/openocd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/openocd.c') diff --git a/src/openocd.c b/src/openocd.c index 65664464..026a32b3 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -79,9 +79,7 @@ static int handle_version_command(struct command_context_s *cmd_ctx, char *cmd, static void exit_handler(void) { - /* close JTAG interface */ - if (jtag && jtag->quit) - jtag->quit(); + jtag_interface_quit(); } static int log_target_callback_event_handler(struct target_s *target, enum target_event event, void *priv) -- cgit v1.2.3