mirror of https://github.com/golang/go.git
changed socket length to return int32
This commit is contained in:
parent
31c3b98c84
commit
7dd663678d
|
|
@ -873,7 +873,7 @@ func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, int32, error) {
|
|||
}
|
||||
// Length is family + name (+ NUL if non-abstract).
|
||||
// Family is of type uint16 (2 bytes).
|
||||
sl := _Socklen(2 + n)
|
||||
sl := int32(2 + n)
|
||||
if isAbstract {
|
||||
// Abstract addresses are not NUL terminated.
|
||||
// We rewrite '@' prefix to NUL here.
|
||||
|
|
|
|||
Loading…
Reference in New Issue