summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-08-20 20:24:00 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-08-20 20:24:11 +0200
commit575c8e8dec6d1f544debe867ebc0bde051209c17 (patch)
tree0efac8d6ad58ce90e6a36b0bf1b1b8736051d413
parentb62a33af03c39a8970249ce7afe7baec7ea9b91b (diff)
fix data type of the "response" field (https://dev.openwrt.org/ticket/14062)
-rw-r--r--switch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/switch.c b/switch.c
index 9f1f3b4..763acfa 100644
--- a/switch.c
+++ b/switch.c
@@ -335,7 +335,7 @@ void handle_switch(struct usbdev_data *data)
[DATA_INTERFACE] = { .name = "interface", .type = BLOBMSG_TYPE_INT32 },
[DATA_MSG_EP] = { .name = "msg_endpoint", .type = BLOBMSG_TYPE_INT32 },
[DATA_RES_EP] = { .name = "response_endpoint", .type = BLOBMSG_TYPE_INT32 },
- [DATA_RESPONSE] = { .name = "response", .type = BLOBMSG_TYPE_INT32 },
+ [DATA_RESPONSE] = { .name = "response", .type = BLOBMSG_TYPE_BOOL },
[DATA_CONFIG] = { .name = "config", .type = BLOBMSG_TYPE_INT32 },
[DATA_ALT] = { .name = "alt", .type = BLOBMSG_TYPE_INT32 },
};