diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-09-30 14:53:00 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-10-02 06:09:59 +0200 |
commit | f91786df4b06af94a2bc59a8290e84668aa49358 (patch) | |
tree | 55905756ffd212c4af5bc0c4bf1b4cd542d344db /include | |
parent | 8698e706684dfd68d5e62b785e3b4683c696c18e (diff) | |
download | barebox-f91786df4b06af94a2bc59a8290e84668aa49358.tar.gz barebox-f91786df4b06af94a2bc59a8290e84668aa49358.tar.xz |
include: string: migrate barebox function from <linux/string.h>
<linux/string.h> was imported from Linux. In order to keep changes
to a minimum, add prototypes for new barebox functions to <string.h>
instead.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/string.h | 1 | ||||
-rw-r--r-- | include/string.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/string.h b/include/linux/string.h index 2b699957e8..85c3eb1de3 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -10,7 +10,6 @@ extern "C" { extern char * strpbrk(const char *,const char *); extern char * strsep(char **,const char *); -extern char * strsep_unescaped(char **,const char *); extern __kernel_size_t strspn(const char *,const char *); diff --git a/include/string.h b/include/string.h index 727bc51934..063e85f62c 100644 --- a/include/string.h +++ b/include/string.h @@ -5,6 +5,7 @@ #include <linux/string.h> int strtobool(const char *str, int *val); +char *strsep_unescaped(char **, const char *); void *__default_memset(void *, int, __kernel_size_t); void *__nokasan_default_memset(void *, int, __kernel_size_t); |