projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add support for a const void * key in avl
[project/ubus.git]
/
ubusd_obj.c
diff --git
a/ubusd_obj.c
b/ubusd_obj.c
index
3dd2d7f
..
3c0e823
100644
(file)
--- a/
ubusd_obj.c
+++ b/
ubusd_obj.c
@@
-135,7
+135,7
@@
struct ubus_object *ubusd_create_object(struct ubus_client *cl, struct blob_attr
goto free;
if (avl_insert(&path, &obj->path) != 0) {
goto free;
if (avl_insert(&path, &obj->path) != 0) {
- free(obj->path.key);
+ free(
(void *)
obj->path.key);
obj->path.key = NULL;
goto free;
}
obj->path.key = NULL;
goto free;
}
@@
-158,7
+158,7
@@
void ubusd_free_object(struct ubus_object *obj)
if (obj->path.key) {
ubusd_send_obj_event(obj, false);
avl_delete(&path, &obj->path);
if (obj->path.key) {
ubusd_send_obj_event(obj, false);
avl_delete(&path, &obj->path);
- free(obj->path.key);
+ free(
(void *)
obj->path.key);
}
if (!list_empty(&obj->list))
list_del(&obj->list);
}
if (!list_empty(&obj->list))
list_del(&obj->list);