]> git.sur5r.net Git - openocd/commitdiff
JTAG/COMMANDS: review scope of functions
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 10 Apr 2010 14:01:16 +0000 (22:01 +0800)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 10 Apr 2010 14:01:16 +0000 (22:01 +0800)
Add "static" qualifier to private functions.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
src/jtag/commands.c
src/jtag/commands.h

index 6951f0317c6925a5dde6315628590e99b07b68c5..d236fe997a2f24a55c6e5e9323ba7a9cf7e5841f 100644 (file)
@@ -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;
 
index 692eee430fbf8c101a99f35ecc8f425ec9aba847..87bd9c53706da216dd757c238d20c6f0b2851c83 100644 (file)
@@ -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);