From 514272bd56a9bfbcf1ff1e787aece426e235da37 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Wed, 20 Dec 2023 14:31:25 +0000 Subject: [PATCH] unix: remove extra trailing newlines in zsyscall_openbsd_*.go These newlines are written by mksyscall.go but should not appear in the final generated files once the output is passed through gofmt. This is done by mkall.sh but I had written a custom script just to generate these openbsd zsyscall files in CL 468095. Running the mksyscall.go output through gofmt fixes this issue. Fixes golang/go#64820 --- unix/zsyscall_openbsd_386.go | 2 -- unix/zsyscall_openbsd_amd64.go | 2 -- unix/zsyscall_openbsd_arm.go | 2 -- unix/zsyscall_openbsd_arm64.go | 2 -- unix/zsyscall_openbsd_mips64.go | 2 -- unix/zsyscall_openbsd_ppc64.go | 2 -- unix/zsyscall_openbsd_riscv64.go | 2 -- 7 files changed, 14 deletions(-) diff --git a/unix/zsyscall_openbsd_386.go b/unix/zsyscall_openbsd_386.go index a1d061597..9dc42410b 100644 --- a/unix/zsyscall_openbsd_386.go +++ b/unix/zsyscall_openbsd_386.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_amd64.go b/unix/zsyscall_openbsd_amd64.go index 5b2a74097..0d3a0751c 100644 --- a/unix/zsyscall_openbsd_amd64.go +++ b/unix/zsyscall_openbsd_amd64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_arm.go b/unix/zsyscall_openbsd_arm.go index f6eda1344..c39f7776d 100644 --- a/unix/zsyscall_openbsd_arm.go +++ b/unix/zsyscall_openbsd_arm.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_arm64.go b/unix/zsyscall_openbsd_arm64.go index 55df20ae9..57571d072 100644 --- a/unix/zsyscall_openbsd_arm64.go +++ b/unix/zsyscall_openbsd_arm64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_mips64.go b/unix/zsyscall_openbsd_mips64.go index 8c1155cbc..e62963e67 100644 --- a/unix/zsyscall_openbsd_mips64.go +++ b/unix/zsyscall_openbsd_mips64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_ppc64.go b/unix/zsyscall_openbsd_ppc64.go index 7cc80c58d..00831354c 100644 --- a/unix/zsyscall_openbsd_ppc64.go +++ b/unix/zsyscall_openbsd_ppc64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - - diff --git a/unix/zsyscall_openbsd_riscv64.go b/unix/zsyscall_openbsd_riscv64.go index 0688737f4..79029ed58 100644 --- a/unix/zsyscall_openbsd_riscv64.go +++ b/unix/zsyscall_openbsd_riscv64.go @@ -2297,5 +2297,3 @@ func unveil(path *byte, flags *byte) (err error) { var libc_unveil_trampoline_addr uintptr //go:cgo_import_dynamic libc_unveil unveil "libc.so" - -