From 60f22426d52ac3e2b746619bd57298813c4822dc Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 19 Dec 2016 02:00:24 -0500 Subject: Use x/sys/unix instead of the deprecated syscall. BREAKING CHANGE. This is just a search/replace s/syscall/unix/g in the broken code. --- nslcd_server/func_handlerequest.go.gen | 6 +++--- nslcd_server/interface_backend.go.gen | 7 +++---- nslcd_server/type_nilbackend.go.gen | 5 ++--- 3 files changed, 8 insertions(+), 10 deletions(-) (limited to 'nslcd_server') diff --git a/nslcd_server/func_handlerequest.go.gen b/nslcd_server/func_handlerequest.go.gen index 4c58ae0..bef29c0 100755 --- a/nslcd_server/func_handlerequest.go.gen +++ b/nslcd_server/func_handlerequest.go.gen @@ -28,15 +28,15 @@ import ( "fmt" "io" "os" - s "syscall" + "golang.org/x/sys/unix" p "lukeshu.com/git/go/libnslcd.git/nslcd_proto" ) var sensitive = "" // Handle a request to nslcd -func HandleRequest(backend Backend, in io.Reader, out io.Writer, cred s.Ucred) (err error) { +func HandleRequest(backend Backend, in io.Reader, out io.Writer, cred unix.Ucred) (err error) { err = nil defer func() { if r := recover(); r != nil { @@ -52,7 +52,7 @@ func HandleRequest(backend Backend, in io.Reader, out io.Writer, cred s.Ucred) ( return } -func handleRequest(backend Backend, in io.Reader, out io.Writer, cred s.Ucred) { +func handleRequest(backend Backend, in io.Reader, out io.Writer, cred unix.Ucred) { var version int32 p.Read(in, &version) if version != p.NSLCD_VERSION { diff --git a/nslcd_server/interface_backend.go.gen b/nslcd_server/interface_backend.go.gen index 94a0433..bca8e17 100755 --- a/nslcd_server/interface_backend.go.gen +++ b/nslcd_server/interface_backend.go.gen @@ -24,8 +24,7 @@ cat <