projects
/
project
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
932914c
)
allow blobmsg_add_field to add arrays/tables
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 7 Feb 2011 00:12:07 +0000
(
01:12
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 7 Feb 2011 00:12:07 +0000
(
01:12
+0100)
blobmsg.c
patch
|
blob
|
history
diff --git
a/blobmsg.c
b/blobmsg.c
index
570be4c
..
15dc750
100644
(file)
--- a/
blobmsg.c
+++ b/
blobmsg.c
@@
-188,10
+188,6
@@
blobmsg_add_field(struct blob_buf *buf, int type, const char *name,
struct blob_attr *attr;
void *data_dest;
- if (type == BLOBMSG_TYPE_ARRAY ||
- type == BLOBMSG_TYPE_TABLE)
- return -1;
-
attr = blobmsg_new(buf, type, name, len, &data_dest);
if (!attr)
return -1;