pmap: fix const warning

pmap.c:300:8: warning: assignment discards 'const' qualifier
	from pointer target type [enabled by default]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2012-01-24 12:56:33 -05:00 committed by Sami Kerola
parent 2bac5334b0
commit fc3bf171ff

2
pmap.c
View File

@ -161,7 +161,7 @@ static int one_proc(proc_t * p)
unsigned long total_private_writeable = 0ul;
KLONG diff = 0;
char *cp2 = NULL;
const char *cp2 = NULL;
unsigned long long rss = 0ull;
unsigned long long private_dirty = 0ull;
unsigned long long shared_dirty = 0ull;