log: improve log_callback_fn signature
Use unsigned type for line number in log_callback_fn signature.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ void log_catch(void);
|
||||
void log_rethrow(void);
|
||||
|
||||
|
||||
typedef void (*log_callback_fn)(void *priv, const char *file, int line,
|
||||
typedef void (*log_callback_fn)(void *priv, const char *file, unsigned line,
|
||||
const char *function, const char *string);
|
||||
|
||||
typedef struct log_callback_s
|
||||
|
||||
Reference in New Issue
Block a user