diff options
author | Marc Schink <jaylink-dev@marcschink.de> | 2016-10-28 19:49:53 +0200 |
---|---|---|
committer | Marc Schink <jaylink-dev@marcschink.de> | 2016-11-05 13:34:50 +0100 |
commit | dfacb31462654f182b5120fd7158445cf6a165bd (patch) | |
tree | 45ec1a1a1439685d2bf6c5aac8120680fed498c6 /libjaylink/error.c | |
parent | 8e5a880694034738ac56df54c560890393ba098c (diff) | |
download | libjaylink-dfacb31462654f182b5120fd7158445cf6a165bd.zip libjaylink-dfacb31462654f182b5120fd7158445cf6a165bd.tar.gz libjaylink-dfacb31462654f182b5120fd7158445cf6a165bd.tar.bz2 |
Rearrange error codes
Signed-off-by: Marc Schink <jaylink-dev@marcschink.de>
Diffstat (limited to 'libjaylink/error.c')
-rw-r--r-- | libjaylink/error.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libjaylink/error.c b/libjaylink/error.c index 6154070..2c696fc 100644 --- a/libjaylink/error.c +++ b/libjaylink/error.c @@ -44,10 +44,10 @@ JAYLINK_API const char *jaylink_strerror(int error_code) return "no error"; case JAYLINK_ERR: return "unspecified error"; - case JAYLINK_ERR_MALLOC: - return "memory allocation error"; case JAYLINK_ERR_ARG: return "invalid argument"; + case JAYLINK_ERR_MALLOC: + return "memory allocation error"; case JAYLINK_ERR_TIMEOUT: return "timeout occurred"; case JAYLINK_ERR_PROTO: @@ -90,10 +90,10 @@ JAYLINK_API const char *jaylink_strerror_name(int error_code) return "JAYLINK_OK"; case JAYLINK_ERR: return "JAYLINK_ERR"; - case JAYLINK_ERR_MALLOC: - return "JAYLINK_ERR_MALLOC"; case JAYLINK_ERR_ARG: return "JAYLINK_ERR_ARG"; + case JAYLINK_ERR_MALLOC: + return "JAYLINK_ERR_MALLOC"; case JAYLINK_ERR_TIMEOUT: return "JAYLINK_ERR_TIMEOUT"; case JAYLINK_ERR_PROTO: |