1
0
mirror of https://github.com/golang/go synced 2024-11-22 09:04:42 -07:00

fix linux build

R=rsc
OCL=27579
CL=27579
This commit is contained in:
Rob Pike 2009-04-16 22:43:34 -07:00
parent 1f6463f823
commit 3a8ff8237a
2 changed files with 3 additions and 3 deletions

View File

@ -114,9 +114,9 @@ func (p *pollster) WaitFD(nsec int64) (fd int64, mode int, err *os.Error) {
if nsec > 0 {
msec = (nsec + 1e6 - 1)/1e6;
}
n, e := syscall.Epoll_wait(p.epfd, evarray, msec);
n, e := syscall.Epoll_wait(p.epfd, &evarray, msec);
for e == syscall.EAGAIN || e == syscall.EINTR {
n, e = syscall.Epoll_wait(p.epfd, evarray, msec);
n, e = syscall.Epoll_wait(p.epfd, &evarray, msec);
}
if e != 0 {
return -1, 0, os.ErrnoToError(e);

View File

@ -59,7 +59,7 @@ func readdirnames(file *File, count int) (names []string, err *os.Error) {
if dirent.Ino == 0 { // File absent in directory.
continue
}
var name = string(dirent.Name[0:clen(dirent.Name)]);
var name = string(dirent.Name[0:clen(&dirent.Name)]);
if name == "." || name == ".." { // Useless names
continue
}