From 097ba2fa9018f361ff3d7b0ae9f494ca9b10210f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 6 Oct 2020 10:09:14 +0200 Subject: [PATCH] unix: fix build on solaris after CL 259637 The build on illumos and solaris currently fails with: unix/syscall_solaris.go:558:6: no new variables on left side of := Fix this by dropping the named return value. Change-Id: Ie29956ba08fd107f380fe432cc85f120d66057b5 Reviewed-on: https://go-review.googlesource.com/c/sys/+/259581 Trust: Tobias Klauser Run-TryBot: Tobias Klauser TryBot-Result: Go Bot Reviewed-by: Matt Layher --- unix/syscall_solaris.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/syscall_solaris.go b/unix/syscall_solaris.go index fcc0e10f..fee6e995 100644 --- a/unix/syscall_solaris.go +++ b/unix/syscall_solaris.go @@ -554,7 +554,7 @@ func Minor(dev uint64) uint32 { //sys ioctl(fd int, req uint, arg uintptr) (err error) -func IoctlSetTermio(fd int, req uint, value *Termio) (err error) { +func IoctlSetTermio(fd int, req uint, value *Termio) error { err := ioctl(fd, req, uintptr(unsafe.Pointer(value))) runtime.KeepAlive(value) return err