diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-07-23 20:38:49 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-07-23 20:38:49 +0000 |
commit | da8091da1b221bb3e3743ff0ae8413eadc83da4e (patch) | |
tree | a45255848d0ca82cdf32b1edc592da00c9eb34c6 /libgo | |
parent | 6212cdcdf7208ab15fe26c9d05e488a8aeb35677 (diff) | |
download | gcc-da8091da1b221bb3e3743ff0ae8413eadc83da4e.zip gcc-da8091da1b221bb3e3743ff0ae8413eadc83da4e.tar.gz gcc-da8091da1b221bb3e3743ff0ae8413eadc83da4e.tar.bz2 |
net: Remove Solaris-specific version of listenerSockaddr.
Solaris will use the version in sock_unix.go.
From-SVN: r201183
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/net/sock_solaris.go | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libgo/go/net/sock_solaris.go b/libgo/go/net/sock_solaris.go index ad639cc..484e1fe 100644 --- a/libgo/go/net/sock_solaris.go +++ b/libgo/go/net/sock_solaris.go @@ -16,32 +16,3 @@ func maxListenerBacklog() int { // The kernel does not track the limit. return syscall.SOMAXCONN } - -func listenerSockaddr(s, f int, la syscall.Sockaddr, toAddr func(syscall.Sockaddr) Addr) (syscall.Sockaddr, error) { - a := toAddr(la) - if a == nil { - return la, nil - } - switch v := a.(type) { - case *TCPAddr, *UnixAddr: - err := setDefaultListenerSockopts(s) - if err != nil { - return nil, err - } - case *UDPAddr: - if v.IP.IsMulticast() { - err := setDefaultMulticastSockopts(s) - if err != nil { - return nil, err - } - switch f { - case syscall.AF_INET: - v.IP = IPv4zero - case syscall.AF_INET6: - v.IP = IPv6unspecified - } - return v.sockaddr(f) - } - } - return la, nil -} |