X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftop.c;h=5207500d0c69d8a670d54c7510d160cc80c0d42e;hb=04de15984f1479d0142bdfa5bd968274aea2209e;hp=2dbd9c2770ba5f05e388ed52cb8767da52b9d181;hpb=6d97cb1e229c22d1d34aa9889aeaf17644ff06dc;p=tinc diff --git a/src/top.c b/src/top.c index 2dbd9c27..5207500d 100644 --- a/src/top.c +++ b/src/top.c @@ -40,7 +40,7 @@ typedef struct nodestats_t { bool known; } nodestats_t; -const char *const sortname[] = { +static const char *const sortname[] = { "name", "in pkts", "in bytes", @@ -50,8 +50,8 @@ const char *const sortname[] = { "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; @@ -128,7 +128,7 @@ static void update(int fd) { } } -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");