diff options
| author | David Crawshaw <crawshaw@golang.org> | 2015-04-13 19:37:04 -0400 |
|---|---|---|
| committer | David Crawshaw <crawshaw@golang.org> | 2015-04-14 12:31:29 +0000 |
| commit | cea272de301e511472ff54905140f526c2ec61f4 (patch) | |
| tree | 55d8fca21b902790b188069a31bd4c2c49f9c2d1 /src/runtime/os1_linux.go | |
| parent | 2f98bac3107d3dee4f546055e790cf0076454c80 (diff) | |
| download | go-cea272de301e511472ff54905140f526c2ec61f4.tar.xz | |
runtime: rename close to closefd
Avoids shadowing the builtin channel close function.
Change-Id: I7a729b0937c8248fe27222be61318a88db995eee
Reviewed-on: https://go-review.googlesource.com/8898
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src/runtime/os1_linux.go')
| -rw-r--r-- | src/runtime/os1_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/os1_linux.go b/src/runtime/os1_linux.go index 44e7698bcf..4214fa7cf7 100644 --- a/src/runtime/os1_linux.go +++ b/src/runtime/os1_linux.go @@ -176,7 +176,7 @@ func getRandomData(r []byte) { } fd := open(&urandom_dev[0], 0 /* O_RDONLY */, 0) n := read(fd, unsafe.Pointer(&r[0]), int32(len(r))) - close(fd) + closefd(fd) extendRandom(r, int(n)) } |
