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 a1d06159..9dc42410 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 5b2a7409..0d3a0751 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 f6eda134..c39f7776 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 55df20ae..57571d07 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 8c1155cb..e62963e6 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 7cc80c58..00831354 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 0688737f..79029ed5 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" - -