summaryrefslogtreecommitdiff
path: root/livetree.c
diff options
context:
space:
mode:
authorDavid Gibson <dgibson@sneetch.(none)>2005-08-29 12:48:02 +1000
committerDavid Gibson <dgibson@sneetch.(none)>2005-08-29 12:48:02 +1000
commit230f253e9b187efd67787f98639aadb15916d0e9 (patch)
treec3dee4bb09777d1aa3abf0a7897a733747cd8e85 /livetree.c
parent41916138dddbae54e4153d11db10fd7695633d27 (diff)
downloaddtc-230f253e9b187efd67787f98639aadb15916d0e9.tar.gz
Remove an unused function, mark a bunch of other functions and variables
as static. Mostly found by sparse.
Diffstat (limited to 'livetree.c')
-rw-r--r--livetree.c6
1 files changed, 3 insertions, 3 deletions
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[] = {