diff options
Diffstat (limited to 'src/config.go')
-rw-r--r-- | src/config.go | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/config.go b/src/config.go index ad4ac97..509da58 100644 --- a/src/config.go +++ b/src/config.go @@ -9,28 +9,19 @@ import ( "strconv" "strings" "sync/atomic" - "syscall" "time" ) -const ( - ipcErrorIO = syscall.EIO - ipcErrorNoPeer = syscall.EPROTO - ipcErrorNoKeyValue = syscall.EPROTO - ipcErrorInvalidKey = syscall.EPROTO - ipcErrorInvalidValue = syscall.EPROTO -) - type IPCError struct { - Code syscall.Errno + Code int64 } func (s *IPCError) Error() string { return fmt.Sprintf("IPC error: %d", s.Code) } -func (s *IPCError) ErrorCode() uintptr { - return uintptr(s.Code) +func (s *IPCError) ErrorCode() int64 { + return s.Code } func ipcGetOperation(device *Device, socket *bufio.ReadWriter) *IPCError { |