diff options
Diffstat (limited to 'zix/common.h')
-rw-r--r-- | zix/common.h | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/zix/common.h b/zix/common.h index 8ec40a1..8c52926 100644 --- a/zix/common.h +++ b/zix/common.h @@ -66,24 +66,17 @@ static inline const char* zix_strerror(const ZixStatus status) { switch (status) { - case ZIX_STATUS_SUCCESS: - return "Success"; - case ZIX_STATUS_ERROR: - return "Unknown error"; - case ZIX_STATUS_NO_MEM: - return "Out of memory"; - case ZIX_STATUS_NOT_FOUND: - return "Not found"; - case ZIX_STATUS_EXISTS: - return "Exists"; - case ZIX_STATUS_BAD_ARG: - return "Bad argument"; - case ZIX_STATUS_BAD_PERMS: - return "Bad permissions"; + case ZIX_STATUS_SUCCESS: return "Success"; + case ZIX_STATUS_ERROR: return "Unknown error"; + case ZIX_STATUS_NO_MEM: return "Out of memory"; + case ZIX_STATUS_NOT_FOUND: return "Not found"; + case ZIX_STATUS_EXISTS: return "Exists"; + case ZIX_STATUS_BAD_ARG: return "Bad argument"; + case ZIX_STATUS_BAD_PERMS: return "Bad permissions"; } return "Unknown error"; } - + /** Function for comparing two elements. */ |