]> granicus.if.org Git - procps-ng/commitdiff
pmap: fix const warning
authorMike Frysinger <vapier@gentoo.org>
Tue, 24 Jan 2012 17:56:33 +0000 (12:56 -0500)
committerSami Kerola <kerolasa@iki.fi>
Thu, 26 Jan 2012 20:12:39 +0000 (21:12 +0100)
pmap.c:300:8: warning: assignment discards 'const' qualifier
from pointer target type [enabled by default]

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
pmap.c

diff --git a/pmap.c b/pmap.c
index 3296ea704ae7496eb3174b3e1604a0d1cc02479f..1f42bec209e6781de4eca9c0725adaae6193cff5 100644 (file)
--- 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;