Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-02-07 03:12:07 +0300
committerFelix Fietkau <nbd@openwrt.org>2011-02-07 03:12:07 +0300
commit6bbde6e647043344288c1da5d53726508a718ab8 (patch)
tree23339597277e17bf3eb78ee4afd4d043898625ac /blobmsg.c
parent932914c1b1ab4b4e94b62c9e6ed9935d4f0b245e (diff)
allow blobmsg_add_field to add arrays/tables
Diffstat (limited to 'blobmsg.c')
-rw-r--r--blobmsg.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/blobmsg.c b/blobmsg.c
index 570be4c..15dc750 100644
--- 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;