From a3244070829202ba8e1d52580d0ce7f76b16fe6c Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Mon, 2 Nov 2015 22:50:53 +0100 Subject: Fix three "golint" nitpicks --- main.go | 1 + sendusr1.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index f1fd58b..6a1ac3e 100644 --- a/main.go +++ b/main.go @@ -33,6 +33,7 @@ const ( ERREXIT_MOUNTPOINT = 10 ) +// GitVersion will be set by the build script "build.bash" var GitVersion = "[version not set - please compile using ./build.bash]" func initDir(dirArg string) { diff --git a/sendusr1.go b/sendusr1.go index eab7d11..c5dbb7c 100644 --- a/sendusr1.go +++ b/sendusr1.go @@ -9,7 +9,7 @@ import ( ) const ( - WRAPPER_CONTAINS = "gocryptfs\000" + wrapperContains = "gocryptfs\000" ) // Send USR1 to the parent process. This notifies it that the @@ -24,7 +24,7 @@ func sendUsr1() { fmt.Printf("sendUsr1: ReadFile: %v\n", err) return } - if bytes.Contains(cmdline, []byte(WRAPPER_CONTAINS)) { + if bytes.Contains(cmdline, []byte(wrapperContains)) { p, err := os.FindProcess(ppid) if err != nil { fmt.Printf("sendUsr1: FindProcess: %v\n", err) -- cgit v1.2.3