projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
service: get rid of service_init and service_validate_init, use static avl tree initi...
[project/procd.git]
/
service
/
validate.c
diff --git
a/service/validate.c
b/service/validate.c
index
6a449f4
..
cf04490
100644
(file)
--- a/
service/validate.c
+++ b/
service/validate.c
@@
-32,7
+32,7
@@
static const struct blobmsg_policy service_validate_attrs[__SERVICE_VAL_MAX] = {
[SERVICE_VAL_DATA] = { "data", BLOBMSG_TYPE_TABLE },
};
[SERVICE_VAL_DATA] = { "data", BLOBMSG_TYPE_TABLE },
};
-static
struct avl_tree validators
;
+static
AVL_TREE(validators, avl_strcmp, true, NULL)
;
void
service_validate_dump_all(struct blob_buf *b, char *p, char *s)
void
service_validate_dump_all(struct blob_buf *b, char *p, char *s)
@@
-155,9
+155,3
@@
service_validate_add(struct service *s, struct blob_attr *msg)
free(vr);
}
}
free(vr);
}
}
-
-void
-service_validate_init(void)
-{
- avl_init(&validators, avl_strcmp, true, NULL);
-}