From 230f253e9b187efd67787f98639aadb15916d0e9 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Mon, 29 Aug 2005 12:48:02 +1000 Subject: Remove an unused function, mark a bunch of other functions and variables as static. Mostly found by sparse. --- livetree.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'livetree.c') diff --git a/livetree.c b/livetree.c index ece2273..1db6971 100644 --- a/livetree.c +++ b/livetree.c @@ -97,7 +97,7 @@ void add_child(struct node *parent, struct node *child) * Tree accessor functions */ -char *get_unitname(struct node *node) +static char *get_unitname(struct node *node) { if (node->name[node->basenamelen] == '\0') return ""; @@ -105,7 +105,7 @@ char *get_unitname(struct node *node) return node->name + node->basenamelen + 1; } -struct property *get_property(struct node *node, char *propname) +static struct property *get_property(struct node *node, char *propname) { struct property *prop; @@ -226,7 +226,7 @@ static int name_prop_check(struct property *prop, struct node *node) return 1; } -struct { +static struct { char *propname; int (*check_fn)(struct property *prop, struct node *node); } prop_checker_table[] = { -- cgit v1.2.1