]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
uapi: make ipcerror conform to interface
authorJason A. Donenfeld <Jason@zx2c4.com>
Sun, 10 Mar 2019 01:49:27 +0000 (02:49 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Sun, 10 Mar 2019 01:49:44 +0000 (02:49 +0100)
device/uapi.go

index 5c65917f9061c7086a6659b272f265fbefb595cd..0cb34ea2b82f1f253d5167162fdfca0213240cd7 100644 (file)
@@ -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
 }