From 4c416ab71164dc8d3f800a942fb18c4e67f67897 Mon Sep 17 00:00:00 2001 From: Jan-Benedict Glaw Date: Mon, 10 Apr 2006 22:54:09 -0700 Subject: [PATCH] [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- lib/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/string.c b/lib/string.c index 7be6f0a87e8..064f6315b1c 100644 --- a/lib/string.c +++ b/lib/string.c @@ -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++; -- 2.20.1