summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
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;
}
}