projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sparse fixup: warning: symbol '...' was not declared. Should it be static?
[tinc]
/
src
/
top.c
diff --git
a/src/top.c
b/src/top.c
index
2dbd9c2
..
5ca9749
100644
(file)
--- a/
src/top.c
+++ b/
src/top.c
@@
-40,7
+40,7
@@
typedef struct nodestats_t {
bool known;
} nodestats_t;
bool known;
} nodestats_t;
-const char *const sortname[] = {
+
static
const char *const sortname[] = {
"name",
"in pkts",
"in bytes",
"name",
"in pkts",
"in bytes",
@@
-50,8
+50,8
@@
const char *const sortname[] = {
"tot 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 list_t node_list;
static struct timeval now, prev, diff;