summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/ifstat.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-02-05 09:17:49 +0000
committered <ed@FreeBSD.org>2012-02-05 09:17:49 +0000
commit6b68275a843448f1b144d4384f8e43f7304224e6 (patch)
treef6a0ff9da5f72bfd37eb7110efe8bfb5302a2795 /usr.bin/systat/ifstat.c
parent0bf7c1fae822b77d2fa8f51418249d0bcae123a6 (diff)
downloadFreeBSD-src-6b68275a843448f1b144d4384f8e43f7304224e6.zip
FreeBSD-src-6b68275a843448f1b144d4384f8e43f7304224e6.tar.gz
Whitespace fixes.
- Remove redundant empty lines. - Replace ^L by \014. This allows you to safely cat/grep/etc this file without causing confusion.
Diffstat (limited to 'usr.bin/systat/ifstat.c')
-rw-r--r--usr.bin/systat/ifstat.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/systat/ifstat.c b/usr.bin/systat/ifstat.c
index 77d4a34..fc853b0 100644
--- a/usr.bin/systat/ifstat.c
+++ b/usr.bin/systat/ifstat.c
@@ -58,7 +58,6 @@ static const int col3 = C3;
static const int col4 = C4;
static const int col5 = C5;
-
SLIST_HEAD(, if_stat) curlist;
SLIST_HEAD(, if_stat_disp) displist;
@@ -85,7 +84,7 @@ static void sort_interface_list(void);
static u_int getifnum(void);
#define IFSTAT_ERR(n, s) do { \
- putchar(' '); \
+ putchar('\014'); \
closeifstat(wnd); \
err((n), (s)); \
} while (0)
@@ -143,7 +142,6 @@ static u_int getifnum(void);
mvprintw(p->if_ypos+1, col2-3, "%s", (const char *)"out"); \
} while (0)
-
WINDOW *
openifstat(void)
{
@@ -170,7 +168,6 @@ closeifstat(WINDOW *w)
return;
}
-
void
labelifstat(void)
{
@@ -254,7 +251,6 @@ fetchifstat(void)
IFSTAT_ERR(2, "error getting time of day");
(void)getifmibdata(ifp->if_row, &ifp->if_mib);
-
new_inb = ifp->if_mib.ifmd_data.ifi_ibytes;
new_outb = ifp->if_mib.ifmd_data.ifi_obytes;
OpenPOWER on IntegriCloud