export fswatcher to a separate library

This commit is contained in:
Aine
2023-04-09 22:19:52 +03:00
parent 321060d2d6
commit e8ade4173f
135 changed files with 1212 additions and 877 deletions

View File

@@ -245,8 +245,7 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
break
}
}
bytes := (*[len(pp.Path)]byte)(unsafe.Pointer(&pp.Path[0]))[0:n]
sa.Name = string(bytes)
sa.Name = string(unsafe.Slice((*byte)(unsafe.Pointer(&pp.Path[0])), n))
return sa, nil
case AF_INET: