From fdc56b21c10db2f9671eafc4650ceb301ea5ec70 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:45:52 +0200 Subject: [PATCH] log: fix lint issue SA1019: syscall.Syscall has been deprecated since Go 1.18: Use SyscallN instead. --- fs/log/redirect_stderr_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/log/redirect_stderr_windows.go b/fs/log/redirect_stderr_windows.go index 7a7e8cfc1..f20ede7b0 100644 --- a/fs/log/redirect_stderr_windows.go +++ b/fs/log/redirect_stderr_windows.go @@ -20,7 +20,7 @@ var ( ) 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 e1 != 0 { return error(e1)