summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/netstat.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-09-10 22:07:52 +0000
committerdelphij <delphij@FreeBSD.org>2015-09-10 22:07:52 +0000
commitc4ba6d848bb9ccb12d15f4e4aebc9fcf5c0aca86 (patch)
treea506e61dc22cfaf1ca17ad038ff945cb20137be7 /usr.bin/systat/netstat.c
parentba1086b4fef8cdfb6cba9bdc23df8e9ac0cd959b (diff)
downloadFreeBSD-src-c4ba6d848bb9ccb12d15f4e4aebc9fcf5c0aca86.zip
FreeBSD-src-c4ba6d848bb9ccb12d15f4e4aebc9fcf5c0aca86.tar.gz
- Avoid accessing window properties directly, instead, use accessors.
This should be no-op for now, but allows the code to work if we move to NCURSES_OPAQUE. - Use calloc() instead of malloc+bzero. MFC after: 2 weeks
Diffstat (limited to 'usr.bin/systat/netstat.c')
-rw-r--r--usr.bin/systat/netstat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c
index b5938eb..3f994e8 100644
--- a/usr.bin/systat/netstat.c
+++ b/usr.bin/systat/netstat.c
@@ -85,7 +85,7 @@ static char *inetname(struct sockaddr *);
static void inetprint(struct sockaddr *, const char *);
#define streq(a,b) (strcmp(a,b)==0)
-#define YMAX(w) ((w)->_maxy-1)
+#define YMAX(w) (getmaxy(w)-2)
WINDOW *
opennetstat(void)
OpenPOWER on IntegriCloud