X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=service%2Fservice.c;h=0796adbb717f1ce0285aceb7c4ce5a3c976c5dfc;hb=1418c6ce8559ea125c525c2663105fa5ff14905e;hp=2702dc38286fbd80852a9a21d1ab458aee01c6a9;hpb=6a746e16105f5ad928d80f7584515f7e6ebb2005;p=project%2Fprocd.git diff --git a/service/service.c b/service/service.c index 2702dc3..0796adb 100644 --- a/service/service.c +++ b/service/service.c @@ -22,7 +22,7 @@ #include "../rcS.h" -struct avl_tree services; +AVL_TREE(services, avl_strcmp, false, NULL); static struct blob_buf b; static struct ubus_context *ctx; @@ -552,11 +552,3 @@ void ubus_init_service(struct ubus_context *_ctx) ctx = _ctx; ubus_add_object(ctx, &main_object); } - -void -service_init(void) -{ - avl_init(&services, avl_strcmp, false, NULL); - service_validate_init(); -} -