mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 3/3] pbl string: Fix no previous prototype warnings
Date: Sat, 26 Jan 2013 12:23:23 +0100	[thread overview]
Message-ID: <1359199403-27664-4-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1359199403-27664-1-git-send-email-s.hauer@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 pbl/string.c |   10 ++--------
 1 file 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);
-}
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2013-01-26 11:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-26 11:23 [PATCH] fix build warnings Sascha Hauer
2013-01-26 11:23 ` [PATCH 1/3] ARM bcm2835: Fix noreturn function does return Sascha Hauer
2013-01-26 11:23 ` [PATCH 2/3] ARM: Fix reassigning symbols in defconfigs Sascha Hauer
2013-01-26 11:23 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1359199403-27664-4-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox