diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-01-06 15:34:50 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-01-06 15:34:50 -0500 |
| commit | 53913acaf70f14c519b0fa0e3771d3dc641ac86b (patch) | |
| tree | cc34d9eb206b47bf85447c7239a7547a59379e1a /lib/std/debug.zig | |
| parent | 5951b79af40212754071157596b8aebbe2414ffb (diff) | |
| download | zig-53913acaf70f14c519b0fa0e3771d3dc641ac86b.tar.gz zig-53913acaf70f14c519b0fa0e3771d3dc641ac86b.zip | |
zig fmt and update `extern fn` to `callconv(.C)`
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
