summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2011-10-16 16:47:55 -0500
committerCraig Small <csmall@enc.com.au>2011-12-22 23:48:04 +1100
commit18fc0b963dba106646e818856fbaa82bb98aa083 (patch)
tree3b29f0d692965a7904b243ded3e9959ba95a976f
parenteac96c37b5e33a835a9355459749c72a64ad125c (diff)
downloadprocps-ng-18fc0b963dba106646e818856fbaa82bb98aa083.tar.gz
top: use existing unsigned vs. separate int
-rw-r--r--top/top.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/top/top.c b/top/top.c
index 2a0ed91..ed6d8c0 100644
--- a/top/top.c
+++ b/top/top.c
@@ -1699,8 +1699,7 @@ static void zap_fieldstab (void) {
static char fmts_pid[8];
static char fmts_cpu[8];
static int once;
- int i;
- unsigned digits;
+ unsigned i, digits;
char buf[8];
if (once) goto always;