summaryrefslogtreecommitdiff
path: root/switch.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-05-30 19:06:05 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-05-30 19:06:05 +0200
commited61a16faf025671d9ff751b827980cc44f9f088 (patch)
treee3bd806be9b0fec8ee931e019793fdc3d248d87a /switch.c
parenta9aa888729f2564c14b668b19c9433d07d2669b5 (diff)
use an array for messages
Diffstat (limited to 'switch.c')
-rw-r--r--switch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/switch.c b/switch.c
index 3f1e3f3..b73fe01 100644
--- a/switch.c
+++ b/switch.c
@@ -84,9 +84,7 @@ void handle_switch(struct usbdev_data *data)
{
static const struct blobmsg_policy data_policy[__DATA_MAX] = {
[DATA_MODE] = { .name = "mode", .type = BLOBMSG_TYPE_STRING },
- [DATA_MSG] = { .name = "msg", .type = BLOBMSG_TYPE_INT32 },
- [DATA_MSG2] = { .name = "msg2", .type = BLOBMSG_TYPE_INT32 },
- [DATA_MSG3] = { .name = "msg3", .type = BLOBMSG_TYPE_INT32 },
+ [DATA_MSG] = { .name = "msg", .type = BLOBMSG_TYPE_ARRAY },
};
struct blob_attr *tb[__DATA_MAX];
int mode = MODE_GENERIC;