Commit d62d06b6 by Ian Lance Taylor

libgo: Fix typo in syscalls/socket_bsd.go.

From-SVN: r169190
parent b74385f0
...@@ -43,11 +43,11 @@ type RawSockaddrUnix struct { ...@@ -43,11 +43,11 @@ type RawSockaddrUnix struct {
Path [108]int8; Path [108]int8;
} }
func (sa *RawsockaddrUnix) setLen(n int) { func (sa *RawSockaddrUnix) setLen(n int) {
sa.Len = uint8(3 + n) // 2 for Family, Len; 1 for NUL. sa.Len = uint8(3 + n) // 2 for Family, Len; 1 for NUL.
} }
func (sa *RawsockaddrUnix) getLen() (int, int) { func (sa *RawSockaddrUnix) getLen() (int, int) {
if sa.Len < 3 || sa.Len > SizeofSockaddrUnix { if sa.Len < 3 || sa.Len > SizeofSockaddrUnix {
return 0, EINVAL return 0, EINVAL
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment