From ce1a5be6897e107d2762d51c2cb3c49ea6ad3aa7 Mon Sep 17 00:00:00 2001 From: jkh Date: Sat, 2 Mar 1996 07:31:58 +0000 Subject: Miscellaneous cleanup before big round of menu restructuring (to use new libdialog features). --- usr.sbin/sysinstall/dmenu.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'usr.sbin/sysinstall/dmenu.c') diff --git a/usr.sbin/sysinstall/dmenu.c b/usr.sbin/sysinstall/dmenu.c index 333f9b5..64f457d 100644 --- a/usr.sbin/sysinstall/dmenu.c +++ b/usr.sbin/sysinstall/dmenu.c @@ -4,7 +4,7 @@ * This is probably the last attempt in the `sysinstall' line, the next * generation being slated for what's essentially a complete rewrite. * - * $Id: dmenu.c,v 1.12.2.5 1995/10/19 15:55:00 jkh Exp $ + * $Id: dmenu.c,v 1.13 1995/12/07 10:33:44 peter Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -163,13 +163,9 @@ dmenuOpen(DMenu *menu, int *choice, int *scroll, int *curr, int *max) if (!rval) { if (menu->options & DMENU_MULTIPLE_TYPE) { - if (menu->options & DMENU_CALL_FIRST) - tmp = &(menu->items[0]); - else { - if (decode_and_dispatch_multiple(menu, result) || menu->options & DMENU_SELECTION_RETURNS) { - items_free(nitems, curr, max); - return TRUE; - } + if (decode_and_dispatch_multiple(menu, result) || menu->options & DMENU_SELECTION_RETURNS) { + items_free(nitems, curr, max); + return TRUE; } } else { -- cgit v1.1