diff options
author | Richard Braun <rbraun@sceen.net> | 2018-01-04 21:43:37 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-01-04 21:43:37 +0100 |
commit | e7321910ca4d956b572a050d302a25df37ce06ab (patch) | |
tree | a3428d4746741325218dd385f36f84b494058d91 /test/test_cbuf.c | |
parent | fe5415c54b05853dbbe230fca0aea3623c3be1e2 (diff) |
error: remove and use errno.h directly
Diffstat (limited to 'test/test_cbuf.c')
-rw-r--r-- | test/test_cbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_cbuf.c b/test/test_cbuf.c index 7f00080..629157d 100644 --- a/test/test_cbuf.c +++ b/test/test_cbuf.c @@ -20,13 +20,13 @@ * DEALINGS IN THE SOFTWARE. */ +#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "../cbuf.h" #include "../check.h" -#include "../error.h" #include "../macros.h" #define TEST_BUF_SIZE 1024 @@ -77,7 +77,7 @@ test_read_0(void) size = 0; error = cbuf_read(&cbuf, index, buf, &size); - check(error == ERROR_INVAL); + check(error == EINVAL); check(size == 0); test_push(&cbuf, "a"); |