=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/if.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/systat/if.c 2006/01/10 23:29:41 1.4 --- src/usr.bin/systat/if.c 2006/03/31 04:10:59 1.5 *************** *** 1,4 **** ! /* $OpenBSD: if.c,v 1.4 2006/01/10 23:29:41 dlg Exp $ */ /* * Copyright (c) 2004 Markus Friedl * --- 1,4 ---- ! /* $OpenBSD: if.c,v 1.5 2006/03/31 04:10:59 deraadt Exp $ */ /* * Copyright (c) 2004 Markus Friedl * *************** *** 23,28 **** --- 23,29 ---- #include #include + #include #include "systat.h" #include "extern.h" *************** *** 47,53 **** } *ifstats; static int nifs = 0; ! extern int naptime; WINDOW * openifstat(void) --- 48,54 ---- } *ifstats; static int nifs = 0; ! extern u_int naptime; WINDOW * openifstat(void) *************** *** 109,115 **** struct sockaddr *info[RTAX_MAX]; struct sockaddr_dl *sdl; char *buf, *next, *lim; ! int mib[6], i; size_t need; mib[0] = CTL_NET; --- 110,116 ---- struct sockaddr *info[RTAX_MAX]; struct sockaddr_dl *sdl; char *buf, *next, *lim; ! int mib[6]; size_t need; mib[0] = CTL_NET; *************** *** 178,184 **** labelifstat(void) { ! wmove(wnd, 0, 0); wclrtobot(wnd); mvwaddstr(wnd, 1, INSET, "Interfaces"); mvwaddstr(wnd, 1, INSET+15, "Ibytes"); --- 179,186 ---- labelifstat(void) { ! wmove(wnd, 0, 0); ! wclrtobot(wnd); mvwaddstr(wnd, 1, INSET, "Interfaces"); mvwaddstr(wnd, 1, INSET+15, "Ibytes"); *************** *** 199,205 **** struct ifstat *ifs; row = 2; ! wmove(wnd, 0, 0); wclrtoeol(wnd); for (ifs = ifstats; ifs < ifstats + nifs; ifs++) { if (ifs->ifs_name[0] == '\0') continue; --- 201,208 ---- struct ifstat *ifs; row = 2; ! wmove(wnd, 0, 0); ! wclrtoeol(wnd); for (ifs = ifstats; ifs < ifstats + nifs; ifs++) { if (ifs->ifs_name[0] == '\0') continue;