Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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++;