X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fopenocd.c;h=ccace082f39587a5d7322add926f9a8215cb0587;hp=d0bd9de1babf618d1dc467f6639f2c00eaa1dd2b;hb=bdb5fd8c98ad474bf2ad790eefc62a830b33f0d4;hpb=f9a3c36cf26b209e04f0f67e0d2b6a844b6b5873;ds=sidebyside diff --git a/src/openocd.c b/src/openocd.c index d0bd9de1ba..ccace082f3 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -60,7 +60,6 @@ #include "replacements.h" - /* Give TELNET a way to find out what version this is */ int handle_version_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { @@ -69,7 +68,6 @@ int handle_version_command(struct command_context_s *cmd_ctx, char *cmd, char ** return ERROR_OK; } - void exit_handler(void) { /* close JTAG interface */ @@ -91,8 +89,6 @@ static int log_target_callback_event_handler(struct target_s *target, enum targe return ERROR_OK; } - - /* OpenOCD can't really handle failure of this command. Patches welcome! :-) */ int handle_init_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { @@ -148,8 +144,6 @@ int handle_init_command(struct command_context_s *cmd_ctx, char *cmd, char **arg tcl_init(); /* allows tcl to just connect without going thru telnet */ target_register_event_callback(log_target_callback_event_handler, cmd_ctx); - - return ERROR_OK; }