summaryrefslogtreecommitdiff
path: root/list.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@pi.lan>2008-08-22 20:30:17 +0200
committerFelix Fietkau <nbd@pi.lan>2008-08-22 20:30:17 +0200
commitb485972f3a40be1627fb2bdd9904889a155f12e0 (patch)
tree40a271f12eee3dd8aaae8c80f4ad287d485466b6 /list.c
parent9efd0d9456d1822cb93b4ce1cc769b09a400852d (diff)
downloaduci-b485972f3a40be1627fb2bdd9904889a155f12e0.tar.gz
more cleanup
Diffstat (limited to 'list.c')
-rw-r--r--list.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/list.c b/list.c
index 98a6e28..83f016e 100644
--- a/list.c
+++ b/list.c
@@ -269,7 +269,8 @@ uci_free_any(struct uci_element **e)
*e = NULL;
}
-static struct uci_element *uci_lookup_list(struct uci_list *list, const char *name)
+static inline struct uci_element *
+uci_lookup_list(struct uci_list *list, const char *name)
{
struct uci_element *e;
@@ -280,7 +281,8 @@ static struct uci_element *uci_lookup_list(struct uci_list *list, const char *na
return NULL;
}
-static struct uci_element *uci_lookup_ext_section(struct uci_context *ctx, struct uci_ptr *ptr)
+static struct uci_element *
+uci_lookup_ext_section(struct uci_context *ctx, struct uci_ptr *ptr)
{
char *idxstr, *t, *section, *name;
struct uci_element *e = NULL;
@@ -354,7 +356,8 @@ done:
return e;
}
-int uci_lookup_ptr(struct uci_context *ctx, struct uci_ptr *ptr, char *str, bool extended)
+int
+uci_lookup_ptr(struct uci_context *ctx, struct uci_ptr *ptr, char *str, bool extended)
{
struct uci_element *e;