From fcad53c745fe4cfa0a13e40f34bbe77a23aa5202 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Mon, 10 Jul 2017 21:32:50 +0200 Subject: ui: clean up the code a bit --- src/ui.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index 55e522b..2042ba0 100644 --- a/src/ui.c +++ b/src/ui.c @@ -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); } -- cgit v1.2.3