aboutsummaryrefslogtreecommitdiff
path: root/lib/std/net.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-01-06 18:53:17 -0500
committerAndrew Kelley <andrew@ziglang.org>2020-01-06 18:53:17 -0500
commit633b6bf92055a62f8a18dbfdb1ddc4f7330bf4ec (patch)
tree3be9c09b1e6c0c3aff43fdc3d6d98948756de023 /lib/std/net.zig
parent4e6ad8efd9fcefb820acf4a03fc4ab9157f85c1b (diff)
parentc0e8837ce9168088e89bfeef9516d7318cd5f97d (diff)
downloadzig-633b6bf92055a62f8a18dbfdb1ddc4f7330bf4ec.tar.gz
zig-633b6bf92055a62f8a18dbfdb1ddc4f7330bf4ec.zip
Merge branch 'LemonBoy-cc-work'
Diffstat (limited to 'lib/std/net.zig')
-rw-r--r--lib/std/net.zig6
1 files changed, 1 insertions, 5 deletions
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,