summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2016-01-02 20:01:49 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2016-01-02 20:01:49 +0000
commit5cff8a4fdd58b1eea02d6f749822d7114d267a99 (patch)
tree3db2c5c43e7d7efa5571366f094a17828460f017
parentb92b52cebdd11e84270983f6b9c1838f8e5e0310 (diff)
remove unused variable cur. code probably c&p from print_bar_title().
remove useless decleration of variable change. ok kettenis@ florian@
-rw-r--r--usr.bin/systat/engine.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/systat/engine.c b/usr.bin/systat/engine.c
index 51c0b7fe4e3..25f44f34c1e 100644
--- a/usr.bin/systat/engine.c
+++ b/usr.bin/systat/engine.c
@@ -1,4 +1,4 @@
-/* $Id: engine.c,v 1.18 2015/01/19 07:39:24 deraadt Exp $ */
+/* $Id: engine.c,v 1.19 2016/01/02 20:01:48 benno Exp $ */
/*
* Copyright (c) 2001, 2007 Can Erkin Acar <canacar@openbsd.org>
*
@@ -361,7 +361,7 @@ print_bar_title(field_def *fld)
void
print_fld_bar(field_def *fld, int value)
{
- int i, tw, val, cur;
+ int i, tw, val;
if (fld->width < 1)
return;
@@ -370,7 +370,7 @@ print_fld_bar(field_def *fld, int value)
tw = fld->arg / 2;
tb_start();
- cur = 0;
+
for(i = 0; i < fld->width; i++) {
tw += fld->arg;
@@ -488,7 +488,6 @@ field_setup(void)
width -= fwid;
}
- change = 0;
while (width > 0) {
change = 0;
for (fp = curr_view->view; *fp != NULL; fp++) {