aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/linux.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-05-20 17:07:06 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-05-20 17:14:18 +0200
commit5b850d5c9251900962e52154eb0fb9c2a344476d (patch)
tree56978e4ad48b44dc723a24d9b62c4d2fe6ab8a32 /lib/std/os/linux.zig
parent4a582734fd84f2096ca9bb559387ddd04c70ed57 (diff)
downloadzig-5b850d5c9251900962e52154eb0fb9c2a344476d.tar.gz
zig-5b850d5c9251900962e52154eb0fb9c2a344476d.zip
Run `zig fmt` on src/ and lib/std/
This replaces callconv(.Inline) with the more idiomatic inline keyword.
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 d057b2f7b3..0d6b87c15f 100644
--- a/lib/std/os/linux.zig
+++ b/lib/std/os/linux.zig
@@ -145,7 +145,7 @@ pub fn fork() usize {
/// It is advised to avoid this function and use clone instead, because
/// the compiler is not aware of how vfork affects control flow and you may
/// see different results in optimized builds.
-pub fn vfork() callconv(.Inline) usize {
+pub inline fn vfork() usize {
return @call(.{ .modifier = .always_inline }, syscall0, .{.vfork});
}