summaryrefslogtreecommitdiffstats
path: root/pbl
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-01-25 22:36:30 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-25 22:36:30 +0100
commit1247892b7304d2bf3346678475a732f0d9677f75 (patch)
tree0c3dc824505b22716ae8ee977691869f2c43f1e8 /pbl
parent2ae54f8161b48051a20cc2dbd184675e98c4450e (diff)
downloadbarebox-1247892b7304d2bf3346678475a732f0d9677f75.tar.gz
pbl string: Fix no previous prototype warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'pbl')
-rw-r--r--pbl/string.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/pbl/string.c b/pbl/string.c
index 6787e82..b773f5c 100644
--- a/pbl/string.c
+++ b/pbl/string.c
@@ -5,6 +5,7 @@
*/
#include <linux/types.h>
+#include <linux/string.h>
void *memcpy(void *__dest, __const void *__src, size_t __n)
{
@@ -103,7 +104,7 @@ void *memchr(const void *s, int c, size_t count)
return NULL;
}
-char *strchr(const char *s, int c)
+char *_strchr(const char *s, int c)
{
while (*s != (char)c)
if (*s++ == '\0')
@@ -111,8 +112,6 @@ char *strchr(const char *s, int c)
return (char *)s;
}
-#undef memset
-
void *memset(void *s, int c, size_t count)
{
char *xs = s;
@@ -120,8 +119,3 @@ void *memset(void *s, int c, size_t count)
*xs++ = c;
return s;
}
-
-void __memzero(void *s, size_t count)
-{
- memset(s, 0, count);
-}