mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
[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)
|
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++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue