diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-08-24 15:11:28 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2017-08-28 13:54:24 +0300 |
commit | e5562190af57b71384d3eedcae739da3b86aae01 (patch) | |
tree | ad8e8ee876b845a117a3592a6e4da933bb215889 /mesh/main.c | |
parent | c8c680e14a2f299fe1825c6981edcdbe131cf2fd (diff) | |
download | bluez-e5562190af57b71384d3eedcae739da3b86aae01.tar.gz |
mesh: Make use of rl_prompt_input
This removes unnecessary code to ask user input which is already
supported by rl_prompt_input.
Diffstat (limited to 'mesh/main.c')
-rw-r--r-- | mesh/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesh/main.c b/mesh/main.c index 0a7fc1ee9..b06f4352a 100644 --- a/mesh/main.c +++ b/mesh/main.c @@ -2005,7 +2005,7 @@ static void rl_handler(char *input) goto done; } - if (agent_input(input) == TRUE) + if (!rl_release_prompt(input)) goto done; add_history(input); @@ -2263,7 +2263,7 @@ int main(int argc, char *argv[]) g_list_free(service_list); g_list_free_full(ctrl_list, proxy_leak); - agent_release(); + rl_release_prompt(""); return 0; } |