summaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorJan-Benedict Glaw <jbglaw@lug-owl.de>2006-04-10 22:54:09 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-04-11 06:18:42 -0700
commit4c416ab71164dc8d3f800a942fb18c4e67f67897 (patch)
tree7fcdcec0aa74ca820eb1338f56dc5530bccad689 /lib/string.c
parentb04eb6aa08ecc3e24df2f78ebc486011ebd74feb (diff)
downloadop-kernel-dev-4c416ab71164dc8d3f800a942fb18c4e67f67897.zip
op-kernel-dev-4c416ab71164dc8d3f800a942fb18c4e67f67897.tar.gz
[PATCH] Silence a const vs non-const warning
lib/string.c: In function 'memcpy': lib/string.c:470: warning: initialization discards qualifiers from pointer = target type Signed-off-by: Jan-Benedict Glaw <jbglaw@lug-owl.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'lib/string.c')
-rw-r--r--lib/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/string.c b/lib/string.c
index 7be6f0a..064f631 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -470,7 +470,7 @@ EXPORT_SYMBOL(memset);
void *memcpy(void *dest, const void *src, size_t count)
{
char *tmp = dest;
- char *s = src;
+ const char *s = src;
while (count--)
*tmp++ = *s++;
OpenPOWER on IntegriCloud