From 9e9537a1da07414a906acf678cbd18864b4f9820 Mon Sep 17 00:00:00 2001 From: "Andrew G. Morgan" Date: Tue, 2 Jun 2020 15:37:19 -0700 Subject: Lint style fixes for C and Go sources. In a couple of places I've made some Go constants internal to the Go packages. They use underscores and weren't Go-style constants and weren't really appropriate for use outside the context of the Go packages. Signed-off-by: Andrew G. Morgan Signed-off-by: Andrew G. Morgan --- cap/launch.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cap/launch.go') diff --git a/cap/launch.go b/cap/launch.go index abb221f..f4327c2 100644 --- a/cap/launch.go +++ b/cap/launch.go @@ -123,7 +123,7 @@ var ErrAmbiguousAmbient = errors.New("use Launcher for ambient caps") var lName = []byte("cap-launcher\000") // -const pr_SET_NAME = 15 +const prSetName = 15 //go:uintptrescapes func launch(result chan<- lResult, attr *Launcher, data interface{}) { @@ -149,7 +149,7 @@ func launch(result chan<- lResult, attr *Launcher, data interface{}) { // Name the launcher thread - transient, but helps if the // callbackFn or something else hangs up. - singlesc.prctlrcall(pr_SET_NAME, uintptr(unsafe.Pointer(&lName[0])), 0) + singlesc.prctlrcall(prSetName, uintptr(unsafe.Pointer(&lName[0])), 0) pa := &syscall.ProcAttr{ Files: []uintptr{0, 1, 2}, -- cgit v1.2.3