From 0065cbe5d015aa155c2a3e91d8c17f6474fef5e8 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Fri, 22 Aug 2014 11:46:10 +0400 Subject: [PATCH] syscall: fix nacl build Timer callback does not accept now as first arg anymore. LGTM=dave R=golang-codereviews, dave CC=golang-codereviews https://golang.org/cl/126530043 --- src/pkg/syscall/net_nacl.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkg/syscall/net_nacl.go b/src/pkg/syscall/net_nacl.go index b9488f48d1..f85b2e1f72 100644 --- a/src/pkg/syscall/net_nacl.go +++ b/src/pkg/syscall/net_nacl.go @@ -21,7 +21,7 @@ type runtimeTimer struct { i int32 when int64 period int64 - f func(int64, interface{}) // NOTE: must not be closure + f func(interface{}) // NOTE: must not be closure arg interface{} } @@ -49,7 +49,7 @@ func (t *timer) stop() { stopTimer(&t.r) } -func timerExpired(now int64, i interface{}) { +func timerExpired(i interface{}) { t := i.(*timer) go func() { t.q.Lock() -- 2.48.1