diff options
author | David Robillard <d@drobilla.net> | 2022-08-19 14:05:26 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-19 14:21:32 -0400 |
commit | 171aa2a60a8deeaf7b7692a0ecb6de56df1607f8 (patch) | |
tree | 9656d3faa9f982c688188911b658962bf8d618c0 /src/status.c | |
parent | 1069c63c6ca2713cce2d6153acc1a1ef9f2b7f8f (diff) | |
download | zix-171aa2a60a8deeaf7b7692a0ecb6de56df1607f8.tar.gz zix-171aa2a60a8deeaf7b7692a0ecb6de56df1607f8.tar.bz2 zix-171aa2a60a8deeaf7b7692a0ecb6de56df1607f8.zip |
Simplify errno handling
Diffstat (limited to 'src/status.c')
-rw-r--r-- | src/status.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/status.c b/src/status.c index a0bb17e..ed48952 100644 --- a/src/status.c +++ b/src/status.c @@ -41,10 +41,6 @@ zix_errno_status(const int e) switch (e) { case 0: return ZIX_STATUS_SUCCESS; -#ifdef EAGAIN - case EAGAIN: - return ZIX_STATUS_NO_MEM; -#endif #ifdef EEXIST case EEXIST: return ZIX_STATUS_EXISTS; @@ -57,6 +53,10 @@ zix_errno_status(const int e) case EPERM: return ZIX_STATUS_BAD_PERMS; #endif +#ifdef ETIMEDOUT + case ETIMEDOUT: + return ZIX_STATUS_TIMEOUT; +#endif default: break; } |