diff options
author | Patrick Steinhardt <ps@pks.im> | 2019-06-28 11:50:32 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2019-07-05 11:38:11 +0200 |
commit | a3afda9fb4d6b7e875c4e5163a85a81c46895fbf (patch) | |
tree | 3f9f3c8cfe3a6476fa0161f3ca3a2c399282db70 | |
parent | 2f14c4fcb80cddb06de19c7d412ef25395cde67b (diff) | |
download | libgit2-a3afda9fb4d6b7e875c4e5163a85a81c46895fbf.tar.gz |
tests: trace: fix parameter type of aux callback
The function `git_win32__stack__set_aux_cb` expects the second parameter
to be a function callback of type `git_win32__stack__aux_cb_lookup`,
which expects a `size_t` parameter. In our test suite
trace::windows::stacktrace, we declare the callback with `unsigned int`
as parameter, though, causing a compiler warning.
Correct the parameter type to silence the warning.
-rw-r--r-- | tests/trace/windows/stacktrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/trace/windows/stacktrace.c b/tests/trace/windows/stacktrace.c index ca5760edd..756ac68a3 100644 --- a/tests/trace/windows/stacktrace.c +++ b/tests/trace/windows/stacktrace.c @@ -132,7 +132,7 @@ static void aux_cb_alloc__1(unsigned int *aux_id) *aux_id = aux_counter++; } -static void aux_cb_lookup__1(unsigned int aux_id, char *aux_msg, unsigned int aux_msg_len) +static void aux_cb_lookup__1(unsigned int aux_id, char *aux_msg, size_t aux_msg_len) { p_snprintf(aux_msg, aux_msg_len, "\tQQ%08x\n", aux_id); } |