]> err.no Git - linux-2.6/commit
Documentation/vm/slabinfo.c: clean up this code
authorWANG Cong <xiyou.wangcong@gmail.com>
Wed, 17 Oct 2007 06:31:29 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:43:06 +0000 (08:43 -0700)
commitf32143a2fedfa299d790ca96bff9b1d2e2d6996b
tree351a003cb63efe43a6e53c20483f2caeeef5737e
parent24950898ffd161f2ea67c60f398146457bca8bf0
Documentation/vm/slabinfo.c: clean up this code

This patch does the following cleanups for Documentation/vm/slabinfo.c:

- Fix two memory leaks;
- Constify some char pointers;
- Use snprintf instead of sprintf in case of buffer overflow;
- Fix some indentations;
- Other little improvements.

Acked-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/vm/slabinfo.c