X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=blobdiff_plain;f=ubusd_obj.c;h=8923821e0827fe3fb904ae57e212ed7cc33f0016;hp=3859c45728cbbd1ebe8c4ffff3976101b8c7708e;hb=4d1cdc55274aac9d032e3ae4bbf0ab72336ba9ac;hpb=e52db46c9c5d8eabe5abaccf28468c6e0b99be95 diff --git a/ubusd_obj.c b/ubusd_obj.c index 3859c45..8923821 100644 --- a/ubusd_obj.c +++ b/ubusd_obj.c @@ -219,7 +219,7 @@ void ubusd_free_object(struct ubus_object *obj) free(obj); } -static void __init ubusd_obj_init(void) +static void __constructor ubusd_obj_init(void) { ubus_init_id_tree(&objects); ubus_init_id_tree(&obj_types);