Skip to content

Commit

Permalink
[PATCH] Silence a const vs non-const warning
Browse files Browse the repository at this point in the history
lib/string.c: In function 'memcpy':
lib/string.c:470: warning: initialization discards qualifiers from pointer =
target type

Signed-off-by: Jan-Benedict Glaw <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jbglaw authored and Linus Torvalds committed Apr 11, 2006
1 parent b04eb6a commit 4c416ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/string.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand Down

0 comments on commit 4c416ab

Please sign in to comment.