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:
parent
4488cd03f9
commit
892bdac762
@ -111,7 +111,7 @@ int attr_def_add(const char *name, const char *desc, struct unit *unit,
|
|||||||
return def->ad_id;
|
return def->ad_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
void attr_def_free(struct attr_def *def)
|
static void attr_def_free(struct attr_def *def)
|
||||||
{
|
{
|
||||||
if (!def)
|
if (!def)
|
||||||
return;
|
return;
|
||||||
|
@ -113,8 +113,9 @@ void element_parse_policy(const char *policy)
|
|||||||
xfree(copy);
|
xfree(copy);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct element *__lookup_element(struct element_group *group, const char *name,
|
static struct element *__lookup_element(struct element_group *group,
|
||||||
uint32_t id, struct element *parent)
|
const char *name, uint32_t id,
|
||||||
|
struct element *parent)
|
||||||
{
|
{
|
||||||
struct list_head *list;
|
struct list_head *list;
|
||||||
struct element *e;
|
struct element *e;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user