From: Dmitriy Vyukov Date: Fri, 22 Aug 2014 07:46:10 +0000 (+0400) Subject: syscall: fix nacl build X-Git-Tag: go1.4beta1~754 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=0065cbe5d015aa155c2a3e91d8c17f6474fef5e8;p=gostls13.git 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 --- 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()