Merge pull request #5316 from marler8997/pubSockLen

make Address.getOsSockLen pub
master
Vexu 2020-05-11 20:10:59 +03:00 committed by GitHub
commit 3e3c651b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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),