From e09d8938f5c27e49e81ed51379e1caa79b5f51c6 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Mon, 9 Nov 2009 06:07:21 -0800 Subject: script_debug(): improve types Use unsigned type for number of arguments. --- src/helper/command.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/helper/command.c') diff --git a/src/helper/command.c b/src/helper/command.c index 2b8f646b..c6327029 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -59,12 +59,12 @@ static void tcl_output(void *privData, const char *file, unsigned line, extern command_context_t *global_cmd_ctx; -void script_debug(Jim_Interp *interp, const char *name, int argc, Jim_Obj *const *argv) +void script_debug(Jim_Interp *interp, const char *name, + unsigned argc, Jim_Obj *const *argv) { - int i; - LOG_DEBUG("command - %s", name); - for (i = 0; i < argc; i++) { + for (unsigned i = 0; i < argc; i++) + { int len; const char *w = Jim_GetString(argv[i], &len); -- cgit v1.2.3