Commit 4c416ab7 authored by Jan-Benedict Glaw's avatar Jan-Benedict Glaw Committed by Linus Torvalds

[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: default avatarJan-Benedict Glaw <jbglaw@lug-owl.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b04eb6aa
...@@ -470,7 +470,7 @@ EXPORT_SYMBOL(memset); ...@@ -470,7 +470,7 @@ EXPORT_SYMBOL(memset);
void *memcpy(void *dest, const void *src, size_t count) void *memcpy(void *dest, const void *src, size_t count)
{ {
char *tmp = dest; char *tmp = dest;
char *s = src; const char *s = src;
while (count--) while (count--)
*tmp++ = *s++; *tmp++ = *s++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment