From 6bbd9dad9dddc78ba247850f14e92dc00570f359 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 11 Feb 2011 04:18:26 +0100 Subject: [PATCH] remove array from the signature --- ubus-example.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ubus-example.c b/ubus-example.c index bac7bdd..5daa46f 100644 --- a/ubus-example.c +++ b/ubus-example.c @@ -7,11 +7,10 @@ struct blob_buf b; static const struct ubus_signature test_object_sig[] = { UBUS_METHOD_START("hello"), - UBUS_ARRAY("test"), - UBUS_TABLE_START(NULL), - UBUS_FIELD(INT32, "id"), - UBUS_FIELD(STRING, "msg"), - UBUS_TABLE_END(), + UBUS_TABLE_START(NULL), + UBUS_FIELD(INT32, "id"), + UBUS_FIELD(STRING, "msg"), + UBUS_TABLE_END(), UBUS_METHOD_END(), }; -- 2.11.0