diff options
author | Thomas Graf <tgraf@suug.ch> | 2015-12-16 14:10:43 +0100 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2015-12-16 14:10:43 +0100 |
commit | 892bdac762f80000e8ee0c27d768f37fce0c53c5 (patch) | |
tree | b68b28e8a88e936bcddd671ba411f59e86215adf | |
parent | 4488cd03f986315cd24114b96a7a5eef56052da4 (diff) |
bmon: Mark attr_def_free() and __lookup_element() static
Fixes sparse warnings:
attr.c:114:6: warning: symbol 'attr_def_free' was not declared. Should it be static?
element.c:116:16: warning: symbol '__lookup_element' was not declared. Should it be static?
Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r-- | src/attr.c | 2 | ||||
-rw-r--r-- | src/element.c | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -111,7 +111,7 @@ int attr_def_add(const char *name, const char *desc, struct unit *unit, return def->ad_id; } -void attr_def_free(struct attr_def *def) +static void attr_def_free(struct attr_def *def) { if (!def) return; diff --git a/src/element.c b/src/element.c index f7c569b..d71a337 100644 --- a/src/element.c +++ b/src/element.c @@ -113,8 +113,9 @@ void element_parse_policy(const char *policy) xfree(copy); } -struct element *__lookup_element(struct element_group *group, const char *name, - uint32_t id, struct element *parent) +static struct element *__lookup_element(struct element_group *group, + const char *name, uint32_t id, + struct element *parent) { struct list_head *list; struct element *e; |