diff options
| -rw-r--r-- | stackdump-on-crash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stackdump-on-crash.c b/stackdump-on-crash.c index 70493ba..9b0bd51 100644 --- a/stackdump-on-crash.c +++ b/stackdump-on-crash.c @@ -29,7 +29,7 @@ dump_stack(ucontext_t *ucontext) const char *funcname = NULL; int first = 1; - if (unw_init_local2(&cursor, ucontext, UNW_INIT_SIGNAL_FRAME)) + if (unw_init_local2(&cursor, (unw_context_t *)ucontext, UNW_INIT_SIGNAL_FRAME)) goto out; memset(&callbacks, 0, sizeof(callbacks)); |
