bool known;
} nodestats_t;
-const char *const sortname[] = {
+static const char *const sortname[] = {
"name",
"in pkts",
"in bytes",
"tot bytes",
};
-int sortmode = 0;
-bool cumulative = false;
+static int sortmode = 0;
+static bool cumulative = false;
static list_t node_list;
static struct timeval now, prev, diff;
}
}
-static void redraw() {
+static void redraw(void) {
erase();
mvprintw(0, 0, "Tinc %-16s Nodes: %4d Sort: %-8s %s", netname, node_list.count, sortname[sortmode], cumulative ? "Cumulative" : "Current");