From 34c6e818e431cc53478a0f7c7c1eca07d194d692 Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Sat, 18 Feb 2017 13:41:53 +0100 Subject: [PATCH] cli: fix listen_timeout compile issue 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 --- 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.25.1