From 828334dd95ce8e4bf3662bd5c89d7c417f0741d0 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 6 Nov 2009 14:24:38 -0800 Subject: - fine-tuning of one-line func heuristic (nodes.go) - enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006 --- src/pkg/os/proc.go | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'src/pkg/os/proc.go') diff --git a/src/pkg/os/proc.go b/src/pkg/os/proc.go index 0dd295edf..e780cfc9a 100644 --- a/src/pkg/os/proc.go +++ b/src/pkg/os/proc.go @@ -13,24 +13,16 @@ var Envs []string // provided by runtime // Getuid returns the numeric user id of the caller. -func Getuid() int { - return syscall.Getuid(); -} +func Getuid() int { return syscall.Getuid() } // Geteuid returns the numeric effective user id of the caller. -func Geteuid() int { - return syscall.Geteuid(); -} +func Geteuid() int { return syscall.Geteuid() } // Getgid returns the numeric group id of the caller. -func Getgid() int { - return syscall.Getgid(); -} +func Getgid() int { return syscall.Getgid() } // Getegid returns the numeric effective group id of the caller. -func Getegid() int { - return syscall.Getegid(); -} +func Getegid() int { return syscall.Getegid() } // Getgroups returns a list of the numeric ids of groups that the caller belongs to. func Getgroups() ([]int, Error) { @@ -40,6 +32,4 @@ func Getgroups() ([]int, Error) { // Exit causes the current program to exit with the given status code. // Conventionally, code zero indicates success, non-zero an error. -func Exit(code int) { - syscall.Exit(code); -} +func Exit(code int) { syscall.Exit(code) } -- cgit v1.2.3