Whitespace fixes.

- Remove redundant empty lines.
- Replace ^L by \014. This allows you to safely cat/grep/etc this file
  without causing confusion.
This commit is contained in:
ed 2012-02-05 09:17:49 +00:00
parent 0bf7c1fae8
commit 6b68275a84
8 changed files with 1 additions and 13 deletions

View File

@ -277,4 +277,3 @@ fetchicmp(void)
if (sysctl(name, 4, &icmpstat, &len, 0, 0) < 0)
return;
}

View File

@ -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;

View File

@ -254,7 +254,6 @@ barlabels(int row)
return (row);
}
void
showiostat(void)
{

View File

@ -337,4 +337,3 @@ fetchip(void)
if (sysctl(name, 4, &curstat.u, &len, 0, 0) < 0)
return;
}

View File

@ -121,7 +121,6 @@ netcmd(const char *cmd, const char *args)
return (0);
}
static void
changeitems(const char *args, int onoff)
{

View File

@ -349,7 +349,6 @@ enter_sysctl(struct inpcb *inp, struct xsocket *so, int state, const char *proto
}
}
static struct netinfo *
enter(struct inpcb *inp, int state, const char *proto)
{
@ -437,7 +436,6 @@ enter(struct inpcb *inp, int state, const char *proto)
#define SNDCC RCVCC+7
#define STATE SNDCC+7
void
labelnetstat(void)
{

View File

@ -81,7 +81,6 @@ closepigs(WINDOW *w)
delwin(w);
}
void
showpigs(void)
{

View File

@ -324,4 +324,3 @@ fetchtcp(void)
if (sysctl(name, 4, &curstat, &len, 0, 0) < 0)
return;
}