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>
This commit is contained in:
Thomas Graf 2015-12-16 14:10:43 +01:00
parent 4488cd03f9
commit 892bdac762
2 changed files with 4 additions and 3 deletions

View File

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

View File

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