From 12430b365a47ab5af8c0a5e4f63b29b78e853f8d Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Wed, 15 Feb 1995 19:48:10 +0000 Subject: [PATCH] Changes for new _menu interface --- gnu/usr.bin/dialog/dialog.c | 4 ++-- sbin/sysinstall/stage0.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gnu/usr.bin/dialog/dialog.c b/gnu/usr.bin/dialog/dialog.c index 16c426dd9d7..060ad75b7ed 100644 --- a/gnu/usr.bin/dialog/dialog.c +++ b/gnu/usr.bin/dialog/dialog.c @@ -230,8 +230,8 @@ int main(int argc, unsigned char *argv[]) init_dialog(); retval = dialog_menu(title, argv[offset+2], atoi(argv[offset+3]), atoi(argv[offset+4]), atoi(argv[offset+5]), - (argc-offset-6)/2, argv+offset + 6, result); - + (argc-offset-6)/2, argv+offset + 6, result, + NULL, NULL); dialog_update(); if (retval == 0) fputs(result, stderr); diff --git a/sbin/sysinstall/stage0.c b/sbin/sysinstall/stage0.c index 3611e65cf8d..8c5a3679b34 100644 --- a/sbin/sysinstall/stage0.c +++ b/sbin/sysinstall/stage0.c @@ -48,7 +48,7 @@ stage0() { evil_goto: if (dialog_menu("Welcome to FreeBSD!", - "Use ALT-F2 and ALT-F1 to toggle between debugging\ninformation screen (ALT-F2) or this dialog screen (ALT-F1)\n\nPlease select one of the following options:", -1, -1, 8, 8, welcome, selection)) + "Use ALT-F2 and ALT-F1 to toggle between debugging\ninformation screen (ALT-F2) or this dialog screen (ALT-F1)\n\nPlease select one of the following options:", -1, -1, 8, 8, welcome, selection, NULL, NULL)) ExitSysinstall(); switch (atoi(selection)) {