diff options
Diffstat (limited to '')
-rw-r--r-- | menu.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -69,11 +69,11 @@ menu_init(struct screen_ctx *sc) } struct menu * -menu_filter(struct menu_q *menuq, char *prompt, char *initial, int dummy, +menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt, + char *initial, int dummy, void (*match)(struct menu_q *, struct menu_q *, char *), void (*print)(struct menu *, int)) { - struct screen_ctx *sc; struct menu_ctx mc; struct menu_q resultq; struct menu *mi = NULL; @@ -81,8 +81,6 @@ menu_filter(struct menu_q *menuq, char *prompt, char *initial, int dummy, Window focuswin; int evmask, focusrevert; - sc = screen_current(); - TAILQ_INIT(&resultq); bzero(&mc, sizeof(mc)); |