diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-04 16:15:53 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-08-04 16:15:53 +0200 |
commit | 8c34c4cbb3780c433148966a004f5a51aace0f64 (patch) | |
tree | a590de76c326f6dfe3c92d2e27b78ce2ab792289 /src/uapi_linux.go | |
parent | 22c83f4b8d98b6b3c7dabc078e70801d0201876c (diff) |
First set of code review patches
Diffstat (limited to 'src/uapi_linux.go')
-rw-r--r-- | src/uapi_linux.go | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/uapi_linux.go b/src/uapi_linux.go index fd83918..d6d78e7 100644 --- a/src/uapi_linux.go +++ b/src/uapi_linux.go @@ -11,13 +11,12 @@ import ( ) const ( - ipcErrorIO = int64(unix.EIO) - ipcErrorNoPeer = int64(unix.EPROTO) - ipcErrorNoKeyValue = int64(unix.EPROTO) - ipcErrorInvalidKey = int64(unix.EPROTO) - ipcErrorInvalidValue = int64(unix.EPROTO) - socketDirectory = "/var/run/wireguard" - socketName = "%s.sock" + ipcErrorIO = -int64(unix.EIO) + ipcErrorNotDefined = -int64(unix.ENODEV) + ipcErrorProtocol = -int64(unix.EPROTO) + ipcErrorInvalid = -int64(unix.EINVAL) + socketDirectory = "/var/run/wireguard" + socketName = "%s.sock" ) /* TODO: |