diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-09 06:12:02 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-11 05:40:48 -0800 |
commit | 6a2e83c01719cada03eb3bd13dc51d21d8bc964f (patch) | |
tree | 20ae63d960b24a05d47fd103aa5600e4d689b78d /src/helper/command.c | |
parent | 0cd414c7d69361768cf0a8b2c1844a8bb2354c8c (diff) | |
download | riscv-openocd-6a2e83c01719cada03eb3bd13dc51d21d8bc964f.zip riscv-openocd-6a2e83c01719cada03eb3bd13dc51d21d8bc964f.tar.gz riscv-openocd-6a2e83c01719cada03eb3bd13dc51d21d8bc964f.tar.bz2 |
log: improve log_callback_fn signature
Use unsigned type for line number in log_callback_fn signature.
Diffstat (limited to 'src/helper/command.c')
-rw-r--r-- | src/helper/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/command.c b/src/helper/command.c index 5d69ffb..5f3c88d 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -49,10 +49,10 @@ Jim_Interp *interp = NULL; int run_command(command_context_t *context, command_t *c, char *words[], int num_words); -static void tcl_output(void *privData, const char *file, int line, const char *function, const char *string) +static void tcl_output(void *privData, const char *file, unsigned line, + const char *function, const char *string) { Jim_Obj *tclOutput = (Jim_Obj *)privData; - Jim_AppendString(interp, tclOutput, string, strlen(string)); } |