summaryrefslogtreecommitdiff
path: root/test/test_cbuf.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-01-04 21:43:37 +0100
committerRichard Braun <rbraun@sceen.net>2018-01-04 21:43:37 +0100
commite7321910ca4d956b572a050d302a25df37ce06ab (patch)
treea3428d4746741325218dd385f36f84b494058d91 /test/test_cbuf.c
parentfe5415c54b05853dbbe230fca0aea3623c3be1e2 (diff)
error: remove and use errno.h directly
Diffstat (limited to 'test/test_cbuf.c')
-rw-r--r--test/test_cbuf.c4
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");