]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: fix nacl build
authorDmitriy Vyukov <dvyukov@google.com>
Fri, 22 Aug 2014 07:46:10 +0000 (11:46 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Fri, 22 Aug 2014 07:46:10 +0000 (11:46 +0400)
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

index b9488f48d1f64bb178e19b4075ffa1bb1fce1958..f85b2e1f725da71b749109af7b3ffce18c936225 100644 (file)
@@ -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()