mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
change Getsockoptint call to be consistent with other calls of this func
This commit is contained in:
@@ -1176,9 +1176,8 @@ func anyToSockaddr(fd int, rsa *RawSockaddrAny) (Sockaddr, error) {
|
||||
return sa, nil
|
||||
|
||||
case AF_CAN:
|
||||
var err error
|
||||
var proto int
|
||||
if proto, err = GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL); err != nil {
|
||||
proto, err := GetsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user