From e43b4cc169d7e85085c0ae1c35a189401ef5763f Mon Sep 17 00:00:00 2001 From: Lonnie Liu Date: Sun, 30 Sep 2018 12:50:56 -0700 Subject: [PATCH] fix build breakage --- transport/internet/sockopt_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/sockopt_linux.go b/transport/internet/sockopt_linux.go index a6db0ed4..b3f81b80 100644 --- a/transport/internet/sockopt_linux.go +++ b/transport/internet/sockopt_linux.go @@ -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() }