diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2017-02-18 13:41:53 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2017-02-20 11:32:19 +0100 |
commit | 34c6e818e431cc53478a0f7c7c1eca07d194d692 (patch) | |
tree | 4a41f682ddbc1572ea942f919086f4ab9607cea0 | |
parent | dfe338350e4dc6912a2552570fa5dd8d5bc84ff0 (diff) | |
download | ubus-34c6e818e431cc53478a0f7c7c1eca07d194d692.tar.gz |
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 <dedeckeh@gmail.com>
-rw-r--r-- | cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |