From 3dd9a0535fd699b03fdc08b111d4a5d606f5bfdd Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 10 Mar 2019 02:49:27 +0100 Subject: uapi: make ipcerror conform to interface --- device/uapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'device') diff --git a/device/uapi.go b/device/uapi.go index 5c65917..0cb34ea 100644 --- a/device/uapi.go +++ b/device/uapi.go @@ -21,11 +21,11 @@ type IPCError struct { int64 } -func (s *IPCError) Error() string { +func (s IPCError) Error() string { return fmt.Sprintf("IPC error: %d", s.int64) } -func (s *IPCError) ErrorCode() int64 { +func (s IPCError) ErrorCode() int64 { return s.int64 } -- cgit v1.2.3-59-g8ed1b