summaryrefslogtreecommitdiff
path: root/usr.bin/systat/if.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-02-25 18:21:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-02-25 18:21:25 +0000
commit93ebb63974b730657d6588a98524bd56827402de (patch)
tree55cbfcac59e35a0de6233b070515d828e4f1d37a /usr.bin/systat/if.c
parent3486ed2c7b04753bdea156a76ee37f0ee29ce752 (diff)
use the 1 line load line from 'systat vm' on all the other displays, giving
them more room. much cleaner, and it is less code too; ok deanna
Diffstat (limited to 'usr.bin/systat/if.c')
-rw-r--r--usr.bin/systat/if.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/systat/if.c b/usr.bin/systat/if.c
index 886a959e32e..75bedea161f 100644
--- a/usr.bin/systat/if.c
+++ b/usr.bin/systat/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.8 2006/11/28 19:21:15 reyk Exp $ */
+/* $OpenBSD: if.c,v 1.9 2007/02/25 18:21:24 deraadt Exp $ */
/*
* Copyright (c) 2004 Markus Friedl <markus@openbsd.org>
*
@@ -58,7 +58,7 @@ WINDOW *
openifstat(void)
{
- return (subwin(stdscr, LINES-5-1, 0, 5, 0));
+ return (subwin(stdscr, LINES-1-1, 0, 1, 0));
}
void
@@ -212,6 +212,7 @@ showlinkstate(int state)
case LINK_STATE_DOWN:
return (":D");
case LINK_STATE_UNKNOWN:
+ default:
return ("");
}
}