From: Antonio Borneo Date: Sat, 10 Apr 2010 14:01:16 +0000 (+0800) Subject: JTAG/COMMANDS: review scope of functions X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=787a5067fbe0eaf05ad2f41a64c3eac776905724;p=fw%2Fopenocd 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 6951f0317..d236fe997 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 692eee430..87bd9c537 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);