diff options
author | Russ Cox <rsc@golang.org> | 2010-05-27 14:51:47 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-05-27 14:51:47 -0700 |
commit | 72aaa4ca27df8cf19707c1b5b4795be22dbe2260 (patch) | |
tree | 0a1979ffe528bfde23ecdc7ef0339d7d0a7d1a80 /src/pkg/net/fd_linux.go | |
parent | 9ead4aa791e9113b87c9ddbde498290d1e5e4b22 (diff) | |
download | golang-72aaa4ca27df8cf19707c1b5b4795be22dbe2260.tar.gz |
changes &x -> x[0:] for array to slice conversion
R=gri
CC=golang-dev
http://codereview.appspot.com/1326042
Diffstat (limited to 'src/pkg/net/fd_linux.go')
-rw-r--r-- | src/pkg/net/fd_linux.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/net/fd_linux.go b/src/pkg/net/fd_linux.go index 5024eec02..ef86cb17f 100644 --- a/src/pkg/net/fd_linux.go +++ b/src/pkg/net/fd_linux.go @@ -113,9 +113,9 @@ func (p *pollster) WaitFD(nsec int64) (fd int, mode int, err os.Error) { if nsec > 0 { msec = int((nsec + 1e6 - 1) / 1e6) } - n, e := syscall.EpollWait(p.epfd, &evarray, msec) + n, e := syscall.EpollWait(p.epfd, evarray[0:], msec) for e == syscall.EAGAIN || e == syscall.EINTR { - n, e = syscall.EpollWait(p.epfd, &evarray, msec) + n, e = syscall.EpollWait(p.epfd, evarray[0:], msec) } if e != 0 { return -1, 0, os.NewSyscallError("epoll_wait", e) |