summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-06-02 19:40:17 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-06-02 19:40:17 +0000
commit1ff7940dde0b51ff9be56ffa751f4a93c90d65e5 (patch)
tree6adc6b8ce9e06bd0aa848746cd3ce3ea677e6ec8
parentb9c0b89618cc1bbe1d4b225d4f5e327a09f95491 (diff)
it compiles w/ new curses
-rw-r--r--usr.bin/systat/iostat.c16
-rw-r--r--usr.bin/systat/mbufs.c4
-rw-r--r--usr.bin/systat/netstat.c2
-rw-r--r--usr.bin/systat/pigs.c4
4 files changed, 13 insertions, 13 deletions
diff --git a/usr.bin/systat/iostat.c b/usr.bin/systat/iostat.c
index d5db76ec76d..ec2b625ba1e 100644
--- a/usr.bin/systat/iostat.c
+++ b/usr.bin/systat/iostat.c
@@ -132,7 +132,7 @@ numlabels(row)
int i, col, regions, ndrives;
#define COLWIDTH 14
-#define DRIVESPERLINE ((wnd->maxx - INSET) / COLWIDTH)
+#define DRIVESPERLINE ((wnd->_maxx - INSET) / COLWIDTH)
for (ndrives = 0, i = 0; i < dk_ndrive; i++)
if (cur.dk_select[i])
ndrives++;
@@ -140,7 +140,7 @@ numlabels(row)
/*
* Deduct -regions for blank line after each scrolling region.
*/
- linesperregion = (wnd->maxy - row - regions) / regions;
+ linesperregion = (wnd->_maxy - row - regions) / regions;
/*
* Minimum region contains space for two
* label lines and one line of statistics.
@@ -150,9 +150,9 @@ numlabels(row)
col = 0;
for (i = 0; i < dk_ndrive; i++)
if (cur.dk_select[i] /*&& cur.dk_bytes[i] != 0.0*/) {
- if (col + COLWIDTH >= wnd->maxx - INSET) {
+ if (col + COLWIDTH >= wnd->_maxx - INSET) {
col = 0, row += linesperregion + 1;
- if (row > wnd->maxy - (linesperregion + 1))
+ if (row > wnd->_maxy - (linesperregion + 1))
break;
}
mvwaddstr(wnd, row, col + 4, cur.dk_name[i]);
@@ -175,7 +175,7 @@ barlabels(row)
linesperregion = 2 + secs;
for (i = 0; i < dk_ndrive; i++)
if (cur.dk_select[i] /*&& cur.dk_bytes[i] != 0.0*/) {
- if (row > wnd->maxy - linesperregion)
+ if (row > wnd->_maxy - linesperregion)
break;
mvwprintw(wnd, row++, 0, "%3.3s Kps|", cur.dk_name[i]);
mvwaddstr(wnd, row++, 0, " tps|");
@@ -214,7 +214,7 @@ showiostat()
row += 2;
for (i = 0; i < dk_ndrive; i++)
if (cur.dk_select[i] /*&& cur.dk_bytes[i] != 0.0*/) {
- if (row > wnd->maxy - linesperregion)
+ if (row > wnd->_maxy - linesperregion)
break;
row = stats(row, INSET, i);
}
@@ -227,9 +227,9 @@ showiostat()
winsertln(wnd);
for (i = 0; i < dk_ndrive; i++)
if (cur.dk_select[i] /*&& cur.dk_bytes[i] != 0.0*/) {
- if (col + COLWIDTH >= wnd->maxx) {
+ if (col + COLWIDTH >= wnd->_maxx) {
col = 0, row += linesperregion + 1;
- if (row > wnd->maxy - (linesperregion + 1))
+ if (row > wnd->_maxy - (linesperregion + 1))
break;
wmove(wnd, row + linesperregion, 0);
wdeleteln(wnd);
diff --git a/usr.bin/systat/mbufs.c b/usr.bin/systat/mbufs.c
index 84da479ee5b..cf1b3b3ff6b 100644
--- a/usr.bin/systat/mbufs.c
+++ b/usr.bin/systat/mbufs.c
@@ -105,9 +105,9 @@ showmbufs()
if (mb == 0)
return;
- for (j = 0; j < wnd->maxy; j++) {
+ for (j = 0; j < wnd->_maxy; j++) {
max = 0, index = -1;
- for (i = 0; i < wnd->maxy; i++)
+ for (i = 0; i < wnd->_maxy; i++)
if (mb->m_mtypes[i] > max) {
max = mb->m_mtypes[i];
index = i;
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c
index ca817d9c40a..4310b23aa3d 100644
--- a/usr.bin/systat/netstat.c
+++ b/usr.bin/systat/netstat.c
@@ -81,7 +81,7 @@ static char *inetname __P((struct in_addr));
static void inetprint __P((struct in_addr *, int, char *));
#define streq(a,b) (strcmp(a,b)==0)
-#define YMAX(w) ((w)->maxy-1)
+#define YMAX(w) ((w)->_maxy-1)
WINDOW *
opennetstat()
diff --git a/usr.bin/systat/pigs.c b/usr.bin/systat/pigs.c
index 6dd123738e4..d6c33358e0a 100644
--- a/usr.bin/systat/pigs.c
+++ b/usr.bin/systat/pigs.c
@@ -116,8 +116,8 @@ showpigs()
qsort(pt, nproc + 1, sizeof (struct p_times), compar);
y = 1;
i = nproc + 1;
- if (i > wnd->maxy-1)
- i = wnd->maxy-1;
+ if (i > wnd->_maxy-1)
+ i = wnd->_maxy-1;
for (k = 0; i > 0 && pt[k].pt_pctcpu > 0.01; i--, y++, k++) {
if (pt[k].pt_kp == NULL) {
uname = "";