Merge pull request #1291 from smlrepo/master

fix build breakage
pull/1292/head
DarienRaymond 2018-09-30 22:21:30 +02:00 committed by GitHub
commit 69afe55d7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ const (
)
func bindAddr(fd uintptr, address net.Address, port net.Port) error {
err = syscall.SetsockoptInt(fd, syscall.SOL_SOCKET, syscall.SO_REUSEADDR, 1)
err := syscall.SetsockoptInt(int(fd), syscall.SOL_SOCKET, syscall.SO_REUSEADDR, 1)
if err != nil {
return newError("failed to set resuse_addr").Base(err).AtWarning()
}