changed socket length to return int32

This commit is contained in:
Albert Sundjaja 2025-02-23 09:58:56 +11:00
parent 31c3b98c84
commit 7dd663678d
1 changed files with 1 additions and 1 deletions

View File

@ -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.