mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net: vfmt everything
This commit is contained in:
@@ -100,13 +100,13 @@ const aoffset = __offsetof(Addr, addr)
|
||||
fn (a Addr) len() u32 {
|
||||
match a.family() {
|
||||
.ip {
|
||||
return sizeof(Ip) + aoffset
|
||||
return sizeof(Ip) + net.aoffset
|
||||
}
|
||||
.ip6 {
|
||||
return sizeof(Ip6) + aoffset
|
||||
return sizeof(Ip6) + net.aoffset
|
||||
}
|
||||
.unix {
|
||||
return sizeof(Unix) + aoffset
|
||||
return sizeof(Unix) + net.aoffset
|
||||
}
|
||||
else {
|
||||
panic('Unknown address family')
|
||||
|
||||
Reference in New Issue
Block a user