diff options
author | Zefir Kurtisi <zefir.kurtisi@neratec.com> | 2014-09-17 12:30:49 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-09-17 13:29:24 +0200 |
commit | 4d1cdc55274aac9d032e3ae4bbf0ab72336ba9ac (patch) | |
tree | cf748fd8a7e9db83cb1df164588d7d3154638c50 /ubusd_obj.c | |
parent | e52db46c9c5d8eabe5abaccf28468c6e0b99be95 (diff) | |
download | ubus-4d1cdc55274aac9d032e3ae4bbf0ab72336ba9ac.tar.gz |
libubus: replace __init with __constructor
__init has a naming collision with C++ and prevents ubus_common.h
from being included. Instead, use __constructor as defined from
libubox.
Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Diffstat (limited to 'ubusd_obj.c')
-rw-r--r-- | ubusd_obj.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |