aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/kpl/base.h2
-rw-r--r--include/kpl/tree.h4
-rw-r--r--include/kpl_test.h2
3 files changed, 5 insertions, 3 deletions
diff --git a/include/kpl/base.h b/include/kpl/base.h
index 144fd51..9420a44 100644
--- a/include/kpl/base.h
+++ b/include/kpl/base.h
@@ -11,6 +11,7 @@
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
+#include <limits.h>
#include <pthread.h>
#include <semaphore.h>
#include <fcntl.h>
@@ -19,6 +20,7 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/uio.h>
+#include <sys/param.h>
#include <linux/fs.h>
#include <linux/io_uring.h>
// KPL includes
diff --git a/include/kpl/tree.h b/include/kpl/tree.h
index 8e52524..90de3a8 100644
--- a/include/kpl/tree.h
+++ b/include/kpl/tree.h
@@ -4,9 +4,9 @@
#pragma once
-// tree_duplicate is a linked stack
+// tree_duplicates is a linked stack
#define KPL_TREE_HEADER(STRUCT_NAME) \
- struct STRUCT_NAME *tree_left, *tree_right, *tree_duplicate; \
+ struct STRUCT_NAME *tree_left, *tree_right, *tree_duplicates; \
int32_t tree_height
/*
diff --git a/include/kpl_test.h b/include/kpl_test.h
index a656761..70a99b2 100644
--- a/include/kpl_test.h
+++ b/include/kpl_test.h
@@ -38,7 +38,7 @@ void _kpl_test_add(kpl_test *_test); // do not call outside KPL_TEST macro
#define KPL_TEST(NAME) _KPL_TEST_FN_DEFINITION(NAME); \
static void __attribute__((constructor)) _ ## NAME(void) { \
static kpl_test _test = { \
- .tree_left = NULL, .tree_right = NULL, .tree_duplicate = NULL, \
+ .tree_left = NULL, .tree_right = NULL, .tree_duplicates = NULL, \
.tree_height = KPL_TREE_TREE_HEIGHT_INIT, \
.error_line_number = KPL_TEST_ERROR_LINE_NUMBER_INIT, \
.list_next = NULL, \