aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/disks.c
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1995-05-17 14:40:00 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1995-05-17 14:40:00 +0000
commitd0eeafc570c1f7423cdc4b48734243a2852e08a3 (patch)
tree3c4b835b80329341731037a431c9a5964fa0a92e /usr.sbin/sysinstall/disks.c
parent4039006ad712a114689353aafd22b97c24b6ee6d (diff)
downloadsrc-d0eeafc570c1f7423cdc4b48734243a2852e08a3.tar.gz
src-d0eeafc570c1f7423cdc4b48734243a2852e08a3.zip
Commit my latest so that Gary can sync up - this version should also
be the grounds for our first round of testing in the release I'm rolling. It doesn't load the distributions yet, but it should do everything else.
Notes
Notes: svn path=/head/; revision=8576
Diffstat (limited to 'usr.sbin/sysinstall/disks.c')
-rw-r--r--usr.sbin/sysinstall/disks.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.sbin/sysinstall/disks.c b/usr.sbin/sysinstall/disks.c
index 0f21f606d896..6dae821ae6a9 100644
--- a/usr.sbin/sysinstall/disks.c
+++ b/usr.sbin/sysinstall/disks.c
@@ -4,7 +4,7 @@
* This is probably the last program in the `sysinstall' line - the next
* generation being essentially a complete rewrite.
*
- * $Id: disks.c,v 1.18 1995/05/16 02:53:02 jkh Exp $
+ * $Id: disks.c,v 1.19 1995/05/16 11:37:10 jkh Exp $
*
* Copyright (c) 1995
* Jordan Hubbard. All rights reserved.
@@ -312,22 +312,20 @@ partitionHook(char *str)
return devs ? 1 : 0;
}
-extern DMenu MenuInstall;
-
int
diskPartitionEditor(char *str)
{
int scroll, choice, curr, max;
- extern DMenu MenuDiskDevices;
DMenu *menu;
menu = deviceCreateMenu(&MenuDiskDevices, DEVICE_TYPE_DISK, partitionHook);
if (!menu) {
msgConfirm("No devices suitable for installation found!\n\nPlease verify that your disk controller (and attached drives) were detected properly. This can be done by selecting the ``Bootmsg'' option on the main menu and reviewing the boot messages carefully.");
- return 0;
}
- choice = scroll = curr = max = 0;
- dmenuOpen(menu, &choice, &scroll, &curr, &max);
- free(menu);
+ else {
+ choice = scroll = curr = max = 0;
+ dmenuOpen(menu, &choice, &scroll, &curr, &max);
+ free(menu);
+ }
return 0;
}