diff options
author | David Gibson <dgibson@sneetch.(none)> | 2005-08-29 12:48:02 +1000 |
---|---|---|
committer | David Gibson <dgibson@sneetch.(none)> | 2005-08-29 12:48:02 +1000 |
commit | 230f253e9b187efd67787f98639aadb15916d0e9 (patch) | |
tree | c3dee4bb09777d1aa3abf0a7897a733747cd8e85 /livetree.c | |
parent | 41916138dddbae54e4153d11db10fd7695633d27 (diff) | |
download | dtc-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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[] = { |