mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 09:54:44 +01:00
log: fix lint issue SA1019: syscall.Syscall has been deprecated since Go 1.18: Use SyscallN instead.
This commit is contained in:
parent
1ca825b6f0
commit
fdc56b21c1
@ -20,7 +20,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func setStdHandle(stdhandle int32, handle syscall.Handle) error {
|
func setStdHandle(stdhandle int32, handle syscall.Handle) error {
|
||||||
r0, _, e1 := syscall.Syscall(procSetStdHandle.Addr(), 2, uintptr(stdhandle), uintptr(handle), 0)
|
r0, _, e1 := syscall.SyscallN(procSetStdHandle.Addr(), uintptr(stdhandle), uintptr(handle))
|
||||||
if r0 == 0 {
|
if r0 == 0 {
|
||||||
if e1 != 0 {
|
if e1 != 0 {
|
||||||
return error(e1)
|
return error(e1)
|
||||||
|
Loading…
Reference in New Issue
Block a user