Commit 4c416ab71164dc8d3f800a942fb18c4e67f67897

Authored by Jan-Benedict Glaw
Committed by Linus Torvalds
1 parent b04eb6aa08

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -470,7 +470,7 @@
470 470 void *memcpy(void *dest, const void *src, size_t count)
471 471 {
472 472 char *tmp = dest;
473   - char *s = src;
  473 + const char *s = src;
474 474  
475 475 while (count--)
476 476 *tmp++ = *s++;