summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/helper/command.c8
-rw-r--r--src/helper/command.h3
2 files changed, 6 insertions, 5 deletions
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);
diff --git a/src/helper/command.h b/src/helper/command.h
index 70b00c32..0b86b881 100644
--- a/src/helper/command.h
+++ b/src/helper/command.h
@@ -170,6 +170,7 @@ DECLARE_PARSE_WRAPPER(_s8, int8_t);
} \
} while (0)
-void script_debug(Jim_Interp *interp, const char *cmd, int argc, Jim_Obj *const *argv);
+void script_debug(Jim_Interp *interp, const char *cmd,
+ unsigned argc, Jim_Obj *const *argv);
#endif /* COMMAND_H */