summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-10 21:32:50 +0200
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2017-07-10 21:32:50 +0200
commitfcad53c745fe4cfa0a13e40f34bbe77a23aa5202 (patch)
tree49e2a00f6ad4278782077854246769ea15dfb7a5
parentd3ec61a536c22904e1357eb3bc0a961831d84f5d (diff)
ui: clean up the code a bit
-rw-r--r--src/ui.c8
1 files changed, 1 insertions, 7 deletions
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);
}