projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0c06ec
)
ubusd: allow registration of anonymous objects with type
author
Felix Fietkau
<nbd@openwrt.org>
Sat, 19 May 2012 14:21:22 +0000
(16:21 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sat, 19 May 2012 14:21:22 +0000
(16:21 +0200)
ubusd_obj.c
patch
|
blob
|
history
diff --git
a/ubusd_obj.c
b/ubusd_obj.c
index 1991b177d66e38dbfa563ca410567611be0192a3..2248a08422e2e5b4ae02db595deaa9c1b81f6d60 100644
(file)
--- a/
ubusd_obj.c
+++ b/
ubusd_obj.c
@@
-132,9
+132,6
@@
struct ubus_object *ubusd_create_object(struct ubus_client *cl, struct blob_attr
else if (attr[UBUS_ATTR_SIGNATURE])
type = ubus_create_obj_type(attr[UBUS_ATTR_SIGNATURE]);
- if (!!type ^ !!attr[UBUS_ATTR_OBJPATH])
- return NULL;
-
obj = ubusd_create_object_internal(type, 0);
if (type)
ubus_unref_object_type(type);