From 765479fc86223de51cb46f5dbce1dfabb4bb8354 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 22 Mar 2011 11:03:05 +0000 Subject: [PATCH] move the default case to the end. ok oga@ --- menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.c b/menu.c index 6172cf8..1ece020 100644 --- a/menu.c +++ b/menu.c @@ -150,8 +150,6 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt, XWindowEvent(X_Dpy, sc->menuwin, evmask, &e); switch (e.type) { - default: - break; case KeyPress: if ((mi = menu_handle_key(&e, &mc, menuq, &resultq)) != NULL) @@ -168,6 +166,8 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, char *prompt, != NULL) goto out; break; + default: + break; } } out: