mirror of
https://github.com/golang/go
synced 2024-11-26 07:38:00 -07:00
internal/poll: eliminate the redundant type conversions of FD.Sysfd
Change-Id: Ib75662f717320510319c696520e645f54eec97f7 Reviewed-on: https://go-review.googlesource.com/c/go/+/301569 Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
78f9015236
commit
15f16706fb
@ -23,7 +23,7 @@ func SendFile(dstFD *FD, src int, pos, remain int64) (int64, error) {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
dst := int(dstFD.Sysfd)
|
||||
dst := dstFD.Sysfd
|
||||
var written int64
|
||||
var err error
|
||||
for remain > 0 {
|
||||
|
@ -20,7 +20,7 @@ func SendFile(dstFD *FD, src int, remain int64) (int64, error) {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
dst := int(dstFD.Sysfd)
|
||||
dst := dstFD.Sysfd
|
||||
var written int64
|
||||
var err error
|
||||
for remain > 0 {
|
||||
|
@ -24,7 +24,7 @@ func SendFile(dstFD *FD, src int, pos, remain int64) (int64, error) {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
dst := int(dstFD.Sysfd)
|
||||
dst := dstFD.Sysfd
|
||||
var written int64
|
||||
var err error
|
||||
for remain > 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user