diff options
Diffstat (limited to 'libgo/go/syscall/sleep_select.go')
-rw-r--r-- | libgo/go/syscall/sleep_select.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/syscall/sleep_select.go b/libgo/go/syscall/sleep_select.go index 3ebaf58f969..533f554da05 100644 --- a/libgo/go/syscall/sleep_select.go +++ b/libgo/go/syscall/sleep_select.go @@ -6,8 +6,8 @@ package syscall -func Sleep(nsec int64) (errno int) { +func Sleep(nsec int64) (err error) { tv := NsecToTimeval(nsec); - _, err := Select(0, nil, nil, nil, &tv); + _, err = Select(0, nil, nil, nil, &tv); return err; } |