From 563d9ebfe597b313b265a5a30296c081fe35d87a Mon Sep 17 00:00:00 2001 From: LemonBoy Date: Mon, 23 Dec 2019 21:52:06 +0100 Subject: Implement the callconv() annotation --- lib/std/net.zig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/std/net.zig') diff --git a/lib/std/net.zig b/lib/std/net.zig index d4e68b2e17..47ce95c99f 100644 --- a/lib/std/net.zig +++ b/lib/std/net.zig @@ -451,11 +451,7 @@ pub fn getAddressList(allocator: *mem.Allocator, name: []const u8, port: u16) !* .next = null, }; var res: *os.addrinfo = undefined; - switch (os.system.getaddrinfo( - name_c.ptr, - @ptrCast([*:0]const u8, port_c.ptr), - &hints, - &res)) { + switch (os.system.getaddrinfo(name_c.ptr, @ptrCast([*:0]const u8, port_c.ptr), &hints, &res)) { 0 => {}, c.EAI_ADDRFAMILY => return error.HostLacksNetworkAddresses, c.EAI_AGAIN => return error.TemporaryNameServerFailure, -- cgit v1.2.3