Fix three "golint" nitpicks

This commit is contained in:
Jakob Unterwurzacher 2015-11-02 22:50:53 +01:00
parent 389977eec4
commit a324407082
2 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ const (
ERREXIT_MOUNTPOINT = 10 ERREXIT_MOUNTPOINT = 10
) )
// GitVersion will be set by the build script "build.bash"
var GitVersion = "[version not set - please compile using ./build.bash]" var GitVersion = "[version not set - please compile using ./build.bash]"
func initDir(dirArg string) { func initDir(dirArg string) {

View File

@ -9,7 +9,7 @@ import (
) )
const ( const (
WRAPPER_CONTAINS = "gocryptfs\000" wrapperContains = "gocryptfs\000"
) )
// Send USR1 to the parent process. This notifies it that the // Send USR1 to the parent process. This notifies it that the
@ -24,7 +24,7 @@ func sendUsr1() {
fmt.Printf("sendUsr1: ReadFile: %v\n", err) fmt.Printf("sendUsr1: ReadFile: %v\n", err)
return return
} }
if bytes.Contains(cmdline, []byte(WRAPPER_CONTAINS)) { if bytes.Contains(cmdline, []byte(wrapperContains)) {
p, err := os.FindProcess(ppid) p, err := os.FindProcess(ppid)
if err != nil { if err != nil {
fmt.Printf("sendUsr1: FindProcess: %v\n", err) fmt.Printf("sendUsr1: FindProcess: %v\n", err)