aboutsummaryrefslogtreecommitdiffstats
path: root/stackdump-on-crash.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-05-03 22:20:12 +0200
committerMattias Andrée <m@maandree.se>2026-05-03 22:20:12 +0200
commite7ce0e3a0336db027c72647b5c9d31be9449c712 (patch)
tree0bacf9b9cb4184f8fb01112f4d9982929d825101 /stackdump-on-crash.c
parentAdd README (diff)
downloadstackdump-on-crash-e7ce0e3a0336db027c72647b5c9d31be9449c712.tar.gz
stackdump-on-crash-e7ce0e3a0336db027c72647b5c9d31be9449c712.tar.bz2
stackdump-on-crash-e7ce0e3a0336db027c72647b5c9d31be9449c712.tar.xz
Add cast required on some archsHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'stackdump-on-crash.c')
-rw-r--r--stackdump-on-crash.c2
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));