From 171aa2a60a8deeaf7b7692a0ecb6de56df1607f8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 19 Aug 2022 14:05:26 -0400 Subject: Simplify errno handling --- src/status.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/status.c') 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; @@ -56,6 +52,10 @@ zix_errno_status(const int e) #ifdef EPERM case EPERM: return ZIX_STATUS_BAD_PERMS; +#endif +#ifdef ETIMEDOUT + case ETIMEDOUT: + return ZIX_STATUS_TIMEOUT; #endif default: break; -- cgit v1.2.1