diff options
author | Jakob Unterwurzacher | 2015-11-02 22:50:53 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-11-02 22:51:12 +0100 |
commit | a3244070829202ba8e1d52580d0ce7f76b16fe6c (patch) | |
tree | 36b0726a3caceea88cd75d22281539c682ed589e | |
parent | 389977eec426559f4fbc2d097b01bcc68f16145a (diff) |
Fix three "golint" nitpicks
-rw-r--r-- | main.go | 1 | ||||
-rw-r--r-- | sendusr1.go | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -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) |