aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/data
diff options
context:
space:
mode:
authorMarvin Borner2020-05-06 19:04:05 +0200
committerMarvin Borner2020-05-06 19:04:05 +0200
commitd94ffac4a584dc7a4f6f2ec567b8caab05ce9253 (patch)
tree559cd596a0a407d4b40c1d12d3c6a0686494da16 /src/kernel/lib/data
parent1a8563a05608b5b5e27eada44cf4790926001c68 (diff)
New build parameters and shared includes
This changes many files but I've just applied some replace commands.. So - nothing special!
Diffstat (limited to 'src/kernel/lib/data')
-rw-r--r--src/kernel/lib/data/list.c12
-rw-r--r--src/kernel/lib/data/tree.c4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/kernel/lib/data/list.c b/src/kernel/lib/data/list.c
index 788b4ab..41f812f 100644
--- a/src/kernel/lib/data/list.c
+++ b/src/kernel/lib/data/list.c
@@ -1,9 +1,9 @@
#include <stdint.h>
#include <stddef.h>
-#include <kernel/lib/lib.h>
-#include <kernel/lib/stdlib.h>
-#include <kernel/lib/data.h>
-#include <kernel/memory/alloc.h>
+#include <lib/lib.h>
+#include <lib/stdlib.h>
+#include <lib/data.h>
+#include <memory/alloc.h>
struct list *list_create()
{
@@ -11,7 +11,7 @@ struct list *list_create()
return list;
}
-uint32_t list_size(struct list *list)
+u32 list_size(struct list *list)
{
if (!list)
return 0;
@@ -182,7 +182,7 @@ void listnode_destroy(struct list_node *node)
// Conversion
-struct list *str_split(const char *str, const char *delim, uint32_t *numtokens)
+struct list *str_split(const char *str, const char *delim, u32 *numtokens)
{
struct list *ret_list = list_create();
char *s = strdup(str);
diff --git a/src/kernel/lib/data/tree.c b/src/kernel/lib/data/tree.c
index 514e2cd..2726a11 100644
--- a/src/kernel/lib/data/tree.c
+++ b/src/kernel/lib/data/tree.c
@@ -1,6 +1,6 @@
#include <stdint.h>
-#include <kernel/lib/data.h>
-#include <kernel/memory/alloc.h>
+#include <lib/data.h>
+#include <memory/alloc.h>
struct tree *tree_create()
{