From 53913acaf70f14c519b0fa0e3771d3dc641ac86b Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 6 Jan 2020 15:34:50 -0500 Subject: zig fmt and update `extern fn` to `callconv(.C)` --- lib/std/debug.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/std/debug.zig') diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 5ef25ec9fc..94f81908da 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -2428,7 +2428,7 @@ fn resetSegfaultHandler() void { os.sigaction(os.SIGILL, &act, null); } -extern fn handleSegfaultLinux(sig: i32, info: *const os.siginfo_t, ctx_ptr: *const c_void) noreturn { +fn handleSegfaultLinux(sig: i32, info: *const os.siginfo_t, ctx_ptr: *const c_void) callconv(.C) noreturn { // Reset to the default handler so that if a segfault happens in this handler it will crash // the process. Also when this handler returns, the original instruction will be repeated // and the resulting segfault will crash the process rather than continually dump stack traces. -- cgit v1.2.3