X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fcommand.c;h=2b8f646b9c1716d665d5ebdeab156c127b2fd216;hp=5f3c88dc0372dd4d4917a47c25e6be9025a81c2b;hb=c9429693770751fd625ee23386ffde6a2da5da87;hpb=6a2e83c01719cada03eb3bd13dc51d21d8bc964f diff --git a/src/helper/command.c b/src/helper/command.c index 5f3c88dc03..2b8f646b9c 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)))