]> Cypherpunks repositories - gostls13.git/commit
syscall: minor cleanup of duplicated code
authorKeisuke Kishimoto <keisuke.kishimoto@gmail.com>
Sun, 8 Sep 2019 16:39:46 +0000 (16:39 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 9 Sep 2019 03:11:53 +0000 (03:11 +0000)
commit844e642392e1586e6631aafeda5007f9f0f55145
tree70123e60523d412876f2d4c37375283f94618397
parent0efbd1015774a2d894138519f1efcf7704bb2d95
syscall: minor cleanup of duplicated code

Call the Nano methods of Timespec and Timeval in TimespecToNsec and
TimevalToNsec respectively, instead of duplicating the implementation.

Change-Id: I17551ea54c59c1e45ce472e029c625093a67251a
GitHub-Last-Rev: fecf43d163f4ebe72e8bb1d3854d4ad962c08b03
GitHub-Pull-Request: golang/go#33390
Reviewed-on: https://go-review.googlesource.com/c/go/+/188397
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/syscall/timestruct.go