]> err.no Git - linux-2.6/commitdiff
[PATCH] Silence a const vs non-const warning
authorJan-Benedict Glaw <jbglaw@lug-owl.de>
Tue, 11 Apr 2006 05:54:09 +0000 (22:54 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 11 Apr 2006 13:18:42 +0000 (06:18 -0700)
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>
lib/string.c

index 7be6f0a87e837638b0ecdf83db9324f0373bdedd..064f6315b1c3e16c731117a7e1aa185a5b2bd405 100644 (file)
@@ -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++;