]> Cypherpunks.ru repositories - goredo.git/commitdiff
Proper case of variable name
authorSergey Matveev <stargrave@stargrave.org>
Mon, 16 Oct 2023 10:42:45 +0000 (13:42 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Mon, 16 Oct 2023 13:16:35 +0000 (16:16 +0300)
log.go
main.go
run.go

diff --git a/log.go b/log.go
index f4abdd078f41fc9b5e5aae1ee2dc2bd66633ba7a..6b91c2d419bc3f6dccca491594c190755bafe108 100644 (file)
--- a/log.go
+++ b/log.go
@@ -49,7 +49,7 @@ var (
        LogWait    bool
        LogLock    bool
        LogJS      bool
-       MyPid      int
+       MyPID      int
 
        CDebug string
        CRedo  string
@@ -110,8 +110,8 @@ func erasedStatus(s, end string) string {
 
 func tracef(level, format string, args ...interface{}) {
        var p string
-       if MyPid != 0 {
-               p = fmt.Sprintf("[%d] ", MyPid)
+       if MyPID != 0 {
+               p = fmt.Sprintf("[%d] ", MyPID)
        }
        switch level {
        case CNone:
diff --git a/main.go b/main.go
index 4439bcab13341686e05697502a6aefd42b3d41ce..03a73d448334295d8aa4e7a04f5a6b46c59f9a88 100644 (file)
--- a/main.go
+++ b/main.go
@@ -198,7 +198,7 @@ func main() {
        LogLock = os.Getenv(EnvLogLock) == "1"
        LogJS = os.Getenv(EnvLogJS) == "1"
        if Debug || os.Getenv(EnvLogPid) == "1" {
-               MyPid = os.Getpid()
+               MyPID = os.Getpid()
        }
        var traced bool
        if flagTraceAll != nil && *flagTraceAll {
diff --git a/run.go b/run.go
index 7a4c1e4bde43da2762c8f23bcce5f5e6299e541b..816f962e25bc23a18f369872fc8730544078dd5a 100644 (file)
--- a/run.go
+++ b/run.go
@@ -640,7 +640,7 @@ func runScript(tgt *Tgt, errs chan error, forced, traced bool) error {
                                if StderrSilent {
                                        continue
                                }
-                               if MyPid == 0 {
+                               if MyPID == 0 {
                                        tracef(CNone, "%s", line)
                                } else {
                                        tracef(CNone, "%s %s", pid, line)