diff options
Diffstat (limited to 'src/lib/net/fd_linux.go')
-rw-r--r-- | src/lib/net/fd_linux.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/net/fd_linux.go b/src/lib/net/fd_linux.go index e459dddc4..77c27473f 100644 --- a/src/lib/net/fd_linux.go +++ b/src/lib/net/fd_linux.go @@ -25,7 +25,7 @@ export type Pollster struct { } export func NewPollster() (p *Pollster, err *os.Error) { - p = new(*Pollster); + p = new(Pollster); var e int64; // The arg to epoll_create is a hint to the kernel @@ -34,7 +34,7 @@ export func NewPollster() (p *Pollster, err *os.Error) { if p.epfd, e = syscall.epoll_create(16); e != 0 { return nil, os.ErrnoToError(e) } - p.events = new(map[int64] uint32); + p.events = make(map[int64] uint32); return p, nil } |