diff options
Diffstat (limited to 'libgo/go/syscall/socket_irix.go')
-rw-r--r-- | libgo/go/syscall/socket_irix.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libgo/go/syscall/socket_irix.go b/libgo/go/syscall/socket_irix.go index 8bd55b8..c1fdc65 100644 --- a/libgo/go/syscall/socket_irix.go +++ b/libgo/go/syscall/socket_irix.go @@ -41,7 +41,7 @@ type RawSockaddrUnix struct { func (sa *RawSockaddrUnix) setLen(int) { } -func (sa *RawSockaddrUnix) getLen() (int, int) { +func (sa *RawSockaddrUnix) getLen() (int, error) { if sa.Path[0] == 0 { // "Abstract" Unix domain socket. // Rewrite leading NUL as @ for textual display. @@ -61,7 +61,7 @@ func (sa *RawSockaddrUnix) getLen() (int, int) { n++ } - return n, 0 + return n, nil } type RawSockaddr struct { @@ -70,7 +70,7 @@ type RawSockaddr struct { } // BindToDevice binds the socket associated with fd to device. -func BindToDevice(fd int, device string) (errno int) { +func BindToDevice(fd int, device string) (err error) { return ENOSYS } @@ -124,6 +124,6 @@ const ( EAI_MAX = 14 ) -func anyToSockaddrOS(rsa *RawSockaddrAny) (Sockaddr, int) { - return nil, EAFNOSUPPORT; +func anyToSockaddrOS(rsa *RawSockaddrAny) (Sockaddr, error) { + return nil, EAFNOSUPPORT } |