From cfc4d5c6b7b6f8f82dc5bbf3ee661c179814666e Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Mon, 9 Nov 2009 23:56:52 -0800 Subject: use COMMAND_HANDLER macro to define all commands --- src/openocd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/openocd.c') diff --git a/src/openocd.c b/src/openocd.c index 7384065a..2a74a46b 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -67,7 +67,7 @@ static void print_version(void) } /* Give TELNET a way to find out what version this is */ -static int handle_version_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) +COMMAND_HANDLER(handle_version_command) { if (argc != 0) return ERROR_COMMAND_SYNTAX_ERROR; @@ -109,7 +109,7 @@ static int log_target_callback_event_handler(struct target_s *target, enum targe int ioutil_init(struct command_context_s *cmd_ctx); /* OpenOCD can't really handle failure of this command. Patches welcome! :-) */ -static int handle_init_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) +COMMAND_HANDLER(handle_init_command) { if (argc != 0) -- cgit v1.2.3