script_debug(): improve types
Use unsigned type for number of arguments.
This commit is contained in:
parent
c942969377
commit
e09d8938f5
|
@ -59,12 +59,12 @@ static void tcl_output(void *privData, const char *file, unsigned line,
|
||||||
|
|
||||||
extern command_context_t *global_cmd_ctx;
|
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);
|
LOG_DEBUG("command - %s", name);
|
||||||
for (i = 0; i < argc; i++) {
|
for (unsigned i = 0; i < argc; i++)
|
||||||
|
{
|
||||||
int len;
|
int len;
|
||||||
const char *w = Jim_GetString(argv[i], &len);
|
const char *w = Jim_GetString(argv[i], &len);
|
||||||
|
|
||||||
|
|
|
@ -170,6 +170,7 @@ DECLARE_PARSE_WRAPPER(_s8, int8_t);
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} 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 */
|
#endif /* COMMAND_H */
|
||||||
|
|
Loading…
Reference in New Issue