From: Antonio Borneo Date: Sat, 10 Apr 2010 14:01:16 +0000 (+0800) Subject: JTAG/COMMANDS: review scope of functions X-Git-Tag: v0.5.0-rc1~760 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=787a5067fbe0eaf05ad2f41a64c3eac776905724;p=openocd JTAG/COMMANDS: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo --- diff --git a/src/jtag/commands.c b/src/jtag/commands.c index 6951f031..d236fe99 100644 --- a/src/jtag/commands.c +++ b/src/jtag/commands.c @@ -121,7 +121,7 @@ void* cmd_queue_alloc(size_t size) return t + offset; } -void cmd_queue_free(void) +static void cmd_queue_free(void) { struct cmd_queue_page *page = cmd_queue_pages; diff --git a/src/jtag/commands.h b/src/jtag/commands.h index 692eee43..87bd9c53 100644 --- a/src/jtag/commands.h +++ b/src/jtag/commands.h @@ -158,7 +158,6 @@ struct jtag_command { extern struct jtag_command* jtag_command_queue; void* cmd_queue_alloc(size_t size); -void cmd_queue_free(void); void jtag_queue_command(struct jtag_command *cmd); void jtag_command_queue_reset(void);