diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-10 02:49:27 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-03-10 02:49:44 +0100 |
commit | 3dd9a0535fd699b03fdc08b111d4a5d606f5bfdd (patch) | |
tree | 150410d3f44af129700ab94c76aa3120b9dadca0 /device/uapi.go | |
parent | c2a2b8d739cb67b71edd7b015a8050e624d93ab7 (diff) |
uapi: make ipcerror conform to interface
Diffstat (limited to 'device/uapi.go')
-rw-r--r-- | device/uapi.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |