summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-07-25 19:57:41 +0200
committerRichard Braun <rbraun@sceen.net>2017-07-25 19:59:09 +0200
commita59f4e53bd02da4d59c6f68df9ecf59333871f2a (patch)
treeec6ea087b05d53df5220608ed310f6a24692a8c4 /error.c
parent35a930f32bfbc7e07d2b0ed70a63fb32c27b22a2 (diff)
error: fix namespace
Diffstat (limited to 'error.c')
-rw-r--r--error.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/error.c b/error.c
index 93d16ef..1eb102a 100644
--- a/error.c
+++ b/error.c
@@ -74,22 +74,22 @@ error_from_errno(int errno_code)
{
switch (errno_code) {
case 0:
- return ERR_SUCCESS;
+ return ERROR_SUCCESS;
case EINVAL:
- return ERR_INVAL;
+ return ERROR_INVAL;
case ENOMEM:
- return ERR_NOMEM;
+ return ERROR_NOMEM;
case EAGAIN:
- return ERR_NORES;
+ return ERROR_NORES;
case EPERM:
- return ERR_PERM;
+ return ERROR_PERM;
case EBUSY:
- return ERR_BUSY;
+ return ERROR_BUSY;
case ETIMEDOUT:
- return ERR_TIMEDOUT;
+ return ERROR_TIMEDOUT;
default:
fprintf(stderr, "unable to translate errno code (%d)\n", errno_code);
- return ERR_UNKNOWN;
+ return ERROR_UNKNOWN;
}
}