From 1fb3ae7075ab9d198b757f7da5cc9c748abc3574 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 16 Feb 2014 11:09:23 -0600 Subject: Various cleanups found by Tom Sparrow's static analysis. --- toys/other/pmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys/other/pmap.c') diff --git a/toys/other/pmap.c b/toys/other/pmap.c index 9ef1ade9..ab0b61cd 100644 --- a/toys/other/pmap.c +++ b/toys/other/pmap.c @@ -34,7 +34,7 @@ void pmap_main(void) size_t len; long long start, end, pss, tpss = 0, dirty, tdirty = 0, swap, tswap = 0, total = 0; - int count, xx = 0; + int xx = 0; snprintf(toybuf, sizeof(toybuf), "/proc/%u/cmdline", pid); line = readfile(toybuf, 0, 0); @@ -57,7 +57,7 @@ void pmap_main(void) // Loop through mappings for (;;) { - int off; + int off, count; line = 0; if (0 >= getline(&line, &len, fp)) break; -- cgit v1.2.3