From: Mike Frysinger Date: Tue, 24 Jan 2012 17:56:33 +0000 (-0500) Subject: pmap: fix const warning X-Git-Tag: v3.3.3~69^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fc3bf171ff26ded103d05e855c16a763f72306a4;p=procps-ng 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 --- 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;