1
0
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:
Delyan Angelov
2021-06-14 10:08:41 +03:00
parent 535dcac8fa
commit d7d9305d96
13 changed files with 387 additions and 215 deletions

View File

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