aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/linux.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-01-06 15:34:50 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-01-06 15:34:50 -0500
commit53913acaf70f14c519b0fa0e3771d3dc641ac86b (patch)
treecc34d9eb206b47bf85447c7239a7547a59379e1a /lib/std/os/linux.zig
parent5951b79af40212754071157596b8aebbe2414ffb (diff)
downloadzig-53913acaf70f14c519b0fa0e3771d3dc641ac86b.tar.gz
zig-53913acaf70f14c519b0fa0e3771d3dc641ac86b.zip
zig fmt and update `extern fn` to `callconv(.C)`
Diffstat (limited to 'lib/std/os/linux.zig')
-rw-r--r--lib/std/os/linux.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig
index efba40bb8d..94fad4cfb7 100644
--- a/lib/std/os/linux.zig
+++ b/lib/std/os/linux.zig
@@ -512,7 +512,7 @@ pub fn clock_gettime(clk_id: i32, tp: *timespec) usize {
return syscall2(SYS_clock_gettime, @bitCast(usize, @as(isize, clk_id)), @ptrToInt(tp));
}
-extern fn init_vdso_clock_gettime(clk: i32, ts: *timespec) usize {
+fn init_vdso_clock_gettime(clk: i32, ts: *timespec) callconv(.C) usize {
const ptr = @intToPtr(?*const c_void, vdso.lookup(VDSO_CGT_VER, VDSO_CGT_SYM));
// Note that we may not have a VDSO at all, update the stub address anyway
// so that clock_gettime will fall back on the good old (and slow) syscall