Commit 61f4ec13 authored by Russ Cox's avatar Russ Cox

syscall: fix build for Sizeof change

R=ken2
CC=golang-dev
https://golang.org/cl/4635051
parent cf9f3804
......@@ -59,7 +59,7 @@ type RoutingMessage interface {
sockaddr() []Sockaddr
}
const anyMessageLen = unsafe.Sizeof(anyMessage{})
const anyMessageLen = int(unsafe.Sizeof(anyMessage{}))
type anyMessage struct {
Msglen uint16
......
......@@ -400,7 +400,7 @@ func SetsockoptIPv6Mreq(fd, level, opt int, mreq *IPv6Mreq) (errno int) {
}
func SetsockoptString(fd, level, opt int, s string) (errno int) {
return setsockopt(fd, level, opt, uintptr(unsafe.Pointer(&[]byte(s)[0])), len(s))
return setsockopt(fd, level, opt, uintptr(unsafe.Pointer(&[]byte(s)[0])), uintptr(len(s)))
}
//sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, errno int)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment