diff options
author | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-07-10 21:32:50 +0200 |
---|---|---|
committer | Alfred E. Heggestad <alfred.heggestad@gmail.com> | 2017-07-10 21:32:50 +0200 |
commit | fcad53c745fe4cfa0a13e40f34bbe77a23aa5202 (patch) | |
tree | 49e2a00f6ad4278782077854246769ea15dfb7a5 | |
parent | d3ec61a536c22904e1357eb3bc0a961831d84f5d (diff) |
ui: clean up the code a bit
-rw-r--r-- | src/ui.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -13,12 +13,6 @@ static struct list uil; /**< List of UIs (struct ui) */ static struct cmd_ctx *uictx; -static void ui_handler(char key, struct re_printf *pf) -{ - (void)cmd_process(baresip_commands(), &uictx, key, pf, NULL); -} - - static int stdout_handler(const char *p, size_t size, void *arg) { (void)arg; @@ -68,7 +62,7 @@ void ui_unregister(struct ui *ui) */ void ui_input_key(char key, struct re_printf *pf) { - ui_handler(key, pf); + (void)cmd_process(baresip_commands(), &uictx, key, pf, NULL); } |