diff options
| author | Vexu <git@vexu.eu> | 2020-05-11 20:10:59 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-11 20:10:59 +0300 |
| commit | 3e3c651b670fb45e714db1cfb32428c3ea3cd828 (patch) | |
| tree | b251e2efbe0ff15ac156000bfb855f333d49dc08 /lib/std/net.zig | |
| parent | e79d7e0deda9e74dbaad1aa77db3e041f92f4f71 (diff) | |
| parent | 832f6c122877b2fd6aeb45b3417e2641bd9aaec7 (diff) | |
| download | zig-3e3c651b670fb45e714db1cfb32428c3ea3cd828.tar.gz zig-3e3c651b670fb45e714db1cfb32428c3ea3cd828.zip | |
Merge pull request #5316 from marler8997/pubSockLen
make Address.getOsSockLen pub
Diffstat (limited to 'lib/std/net.zig')
| -rw-r--r-- | lib/std/net.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/net.zig b/lib/std/net.zig index 4e6bd03186..96c95fc497 100644 --- a/lib/std/net.zig +++ b/lib/std/net.zig @@ -341,7 +341,7 @@ pub const Address = extern union { return mem.eql(u8, a_bytes, b_bytes); } - fn getOsSockLen(self: Address) os.socklen_t { + pub fn getOsSockLen(self: Address) os.socklen_t { switch (self.any.family) { os.AF_INET => return @sizeOf(os.sockaddr_in), os.AF_INET6 => return @sizeOf(os.sockaddr_in6), |
