authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-30 23:03:49-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-30 23:03:49-04:00
log788848e123c056b6204f7555a0118377aa4bd8e1
treef4806c960bc461a90b63153bdbe8fa595168a659
parent61d5a0bf48d034208aea37d72dac5b3531334be7
signaturelock-open Commit is signed but in an unrecognized format.

std.net: fix reference to incorrect constant name


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/net.zig+1-1
......@@ -1271,7 +1271,7 @@ pub const TcpServer = struct {
12711271 pub fn listen(self: *TcpServer, address: IpAddress) !void {
12721272 const nonblock = if (std.io.is_async) os.SOCK_NONBLOCK else 0;
12731273 const sock_flags = os.SOCK_STREAM | os.SOCK_CLOEXEC | nonblock;
1274 const sockfd = try os.socket(os.AF_INET, sock_flags, os.PROTO_tcp);
1274 const sockfd = try os.socket(os.AF_INET, sock_flags, os.IPPROTO_TCP);
12751275 self.sockfd = sockfd;
12761276 errdefer {
12771277 os.close(sockfd);