[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>
This commit is contained in:
parent
b04eb6aa08
commit
4c416ab711
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue