From fb96b8607a0c2a9038df3352b0ef828d78c5e418 Mon Sep 17 00:00:00 2001 From: Øyvind Harboe Date: Tue, 22 Jun 2010 13:02:00 +0200 Subject: openocd: setup_command_handler() must not be static MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit when OpenOCD is linked with an app this fn can be used from the outside. Signed-off-by: Øyvind Harboe --- src/openocd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/openocd.c') diff --git a/src/openocd.c b/src/openocd.c index 623bd0c1..96de50c8 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -209,8 +209,10 @@ static int openocd_register_commands(struct command_context *cmd_ctx) struct command_context *global_cmd_ctx; -/* NB! this fn can be invoked outside this file for non PC hosted builds */ -static struct command_context *setup_command_handler(Jim_Interp *interp) +/* NB! this fn can be invoked outside this file for non PC hosted builds + * NB! do not change to 'static'!!!! + */ +struct command_context *setup_command_handler(Jim_Interp *interp) { log_init(); LOG_DEBUG("log_init: complete"); -- cgit v1.2.3