diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-09 06:09:30 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-11 05:40:48 -0800 |
commit | c9429693770751fd625ee23386ffde6a2da5da87 (patch) | |
tree | ddaa479eaa9ceba59ecd1cb3aacd8862e18c9557 /src/helper/command.c | |
parent | 6a2e83c01719cada03eb3bd13dc51d21d8bc964f (diff) | |
download | riscv-openocd-c9429693770751fd625ee23386ffde6a2da5da87.zip riscv-openocd-c9429693770751fd625ee23386ffde6a2da5da87.tar.gz riscv-openocd-c9429693770751fd625ee23386ffde6a2da5da87.tar.bz2 |
command.c: make private routines static
This patch also improves the signature of run_command function.
Diffstat (limited to 'src/helper/command.c')
-rw-r--r-- | src/helper/command.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/helper/command.c b/src/helper/command.c index 5f3c88d..2b8f646 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -47,7 +47,8 @@ int fast_and_dangerous = 0; Jim_Interp *interp = NULL; -int run_command(command_context_t *context, command_t *c, char *words[], int num_words); +static int run_command(command_context_t *context, + command_t *c, char *words[], unsigned num_words); static void tcl_output(void *privData, const char *file, unsigned line, const char *function, const char *string) @@ -403,7 +404,8 @@ void command_print(command_context_t *context, const char *format, ...) va_end(ap); } -int run_command(command_context_t *context, command_t *c, char *words[], int num_words) +static int run_command(command_context_t *context, + command_t *c, char *words[], unsigned num_words) { int start_word = 0; if (!((context->mode == COMMAND_CONFIG) || (c->mode == COMMAND_ANY) || (c->mode == context->mode))) |