aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/string/strdup.c
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/string/strdup.c
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/string/strdup.c')
-rw-r--r--src/kernel/lib/string/strdup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/lib/string/strdup.c b/src/kernel/lib/string/strdup.c
index 82d14ef..00bb863 100644
--- a/src/kernel/lib/string/strdup.c
+++ b/src/kernel/lib/string/strdup.c
@@ -1,9 +1,9 @@
-#include <kernel/lib/string.h>
-#include <kernel/memory/alloc.h>
+#include <lib/string.h>
+#include <memory/alloc.h>
char *strdup(const char *orig)
{
- size_t s_orig = strlen(orig);
+ u32 s_orig = strlen(orig);
char *ret = (char *)kmalloc(s_orig + 1);
strcpy(ret, orig);
return ret;