[LEDE-DEV] [PATCH ubus 2/2] cli: fix listen_timeout compile issue

Hans Dedecker dedeckeh at gmail.com
Sat Feb 18 04:41:53 PST 2017


Variable listen_timeout is redefined as a function resulting into
a compile issue. Define the function as ubus_cli_listen_timeout
to fix the compile issue.

Signed-off-by: Hans Dedecker <dedeckeh at gmail.com>
---
 cli.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cli.c b/cli.c
index 1949a17..19ccbb5 100644
--- a/cli.c
+++ b/cli.c
@@ -159,7 +159,7 @@ struct cli_listen_data {
 	bool timed_out;
 };
 
-static void listen_timeout(struct uloop_timeout *timeout)
+static void ubus_cli_listen_timeout(struct uloop_timeout *timeout)
 {
 	struct cli_listen_data *data = container_of(timeout, struct cli_listen_data, timeout);
 	data->timed_out = true;
@@ -169,7 +169,7 @@ static void listen_timeout(struct uloop_timeout *timeout)
 static void do_listen(struct ubus_context *ctx, struct cli_listen_data *data)
 {
 	memset(data, 0, sizeof(*data));
-	data->timeout.cb = listen_timeout;
+	data->timeout.cb = ubus_cli_listen_timeout;
 	uloop_init();
 	ubus_add_uloop(ctx);
 	if (listen_timeout)
-- 
2.11.0




More information about the Lede-dev mailing list