aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/os/exec.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-09-15 09:41:59 -0700
committerRuss Cox <rsc@golang.org>2009-09-15 09:41:59 -0700
commitca6a0fee1b3f68ab4e9f8e1c7fbe80f178e68c09 (patch)
tree46eac6aefe26f0b9056bff646d960bcba3d076cf /src/pkg/os/exec.go
parent1a3198907bf18ac961762024cf2a27581e6be6c3 (diff)
downloadgo-ca6a0fee1b3f68ab4e9f8e1c7fbe80f178e68c09.tar.xz
more "declared and not used".
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
Diffstat (limited to 'src/pkg/os/exec.go')
-rw-r--r--src/pkg/os/exec.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/os/exec.go b/src/pkg/os/exec.go
index 3a305243ca..d183e0a16c 100644
--- a/src/pkg/os/exec.go
+++ b/src/pkg/os/exec.go
@@ -148,12 +148,12 @@ func (w Waitmsg) String() string {
// Getpid returns the process id of the caller.
func Getpid() int {
- p, r2, e := syscall.Syscall(syscall.SYS_GETPID, 0, 0, 0);
+ p, _, _ := syscall.Syscall(syscall.SYS_GETPID, 0, 0, 0);
return int(p)
}
// Getppid returns the process id of the caller's parent.
func Getppid() int {
- p, r2, e := syscall.Syscall(syscall.SYS_GETPPID, 0, 0, 0);
+ p, _, _ := syscall.Syscall(syscall.SYS_GETPPID, 0, 0, 0);
return int(p)
}