Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2969)

Unified Diff: src/pkg/os/user/lookup_unix.go

Issue 5372080: code review 5372080: syscall: use error (Closed)
Patch Set: diff -r 25e37de63f5d https://go.googlecode.com/hg/ Created 13 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/os/time.go ('k') | src/pkg/syscall/bpf_bsd.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/os/user/lookup_unix.go
===================================================================
--- a/src/pkg/os/user/lookup_unix.go
+++ b/src/pkg/os/user/lookup_unix.go
@@ -8,9 +8,9 @@
import (
"fmt"
- "os"
"runtime"
"strings"
+ "syscall"
"unsafe"
)
@@ -71,7 +71,7 @@
C.size_t(bufSize),
&result)
if rv != 0 {
- return nil, fmt.Errorf("user: lookup username %s: %s", username, os.Errno(rv))
+ return nil, fmt.Errorf("user: lookup username %s: %s", username, syscall.Errno(rv))
}
if result == nil {
return nil, UnknownUserError(username)
@@ -86,7 +86,7 @@
C.size_t(bufSize),
&result)
if rv != 0 {
- return nil, fmt.Errorf("user: lookup userid %d: %s", uid, os.Errno(rv))
+ return nil, fmt.Errorf("user: lookup userid %d: %s", uid, syscall.Errno(rv))
}
if result == nil {
return nil, UnknownUserIdError(uid)
« no previous file with comments | « src/pkg/os/time.go ('k') | src/pkg/syscall/bpf_bsd.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b