From fc3bf171ff26ded103d05e855c16a763f72306a4 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 24 Jan 2012 12:56:33 -0500 Subject: [PATCH] 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 --- pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmap.c b/pmap.c index 3296ea70..1f42bec2 100644 --- a/pmap.c +++ b/pmap.c @@ -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;