]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] lib/string.c cleanup: restore useful memmove const
authorPaul Jackson <pj@sgi.com>
Sun, 30 Oct 2005 23:03:19 +0000 (15:03 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 31 Oct 2005 01:37:27 +0000 (17:37 -0800)
commit82da2c372712c772134d01317aa2517c923a74f8
tree89e30cd1d0191acc1fa1a03658226bdaa126a077
parent5d57bd39eb3dbf2866b5f5cee8fbd7a29b00c56f
[PATCH] lib/string.c cleanup: restore useful memmove const

A couple of (char *) casts removed in a previous cleanup patch in
lib/string.c:memmove() were actually useful, as they suppressed a couple of
warnings:

assignment discards qualifiers from pointer target type

Fix by declaring the local variable const in the first place, so casts
aren't needed to strip the const qualifier.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
lib/string.c