diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-09-14 15:37:44 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-09-14 16:11:36 +0200 |
commit | 74d78a1e4a47c322d348823b2836614b531cda8b (patch) | |
tree | 4645877ae846414c0fc69b0149b2e37787cee2d5 /include | |
parent | 67f77f924295bb68786a47e81b8e059328896c98 (diff) | |
download | barebox-74d78a1e4a47c322d348823b2836614b531cda8b.tar.gz barebox-74d78a1e4a47c322d348823b2836614b531cda8b.tar.xz |
lib: string: retire deprecated strtok() in favor of reentrant strsep()
With the recent changes to ARCH=sandbox, there are no remaining
in-tree users for strtok() anymore. Out-of-tree users are better
served by using the reentrant strsep(), which has existed in-tree
for as long.
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 | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/string.h b/include/linux/string.h index 763ef500e5..2b699957e8 100644 --- a/include/linux/string.h +++ b/include/linux/string.h @@ -8,9 +8,7 @@ extern "C" { #endif -extern char * ___strtok; extern char * strpbrk(const char *,const char *); -extern char * strtok(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 *); |