projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b04eb6a
)
[PATCH] Silence a const vs non-const warning
author
Jan-Benedict Glaw
<jbglaw@lug-owl.de>
Tue, 11 Apr 2006 05:54:09 +0000
(22:54 -0700)
committer
Linus 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
patch
|
blob
|
blame
|
history
diff --git
a/lib/string.c
b/lib/string.c
index 7be6f0a87e837638b0ecdf83db9324f0373bdedd..064f6315b1c3e16c731117a7e1aa185a5b2bd405 100644
(file)
--- 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;
+ c
onst c
har *s = src;
while (count--)
*tmp++ = *s++;