summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/disks.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-17 14:40:00 +0000
committerjkh <jkh@FreeBSD.org>1995-05-17 14:40:00 +0000
commit51db685ce5136b113343b379f9e1ff5110ce2097 (patch)
tree3c4b835b80329341731037a431c9a5964fa0a92e /usr.sbin/sysinstall/disks.c
parent795504cd3724527d413d54f657c8c077ca836b59 (diff)
downloadFreeBSD-src-51db685ce5136b113343b379f9e1ff5110ce2097.zip
FreeBSD-src-51db685ce5136b113343b379f9e1ff5110ce2097.tar.gz
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.
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 0f21f60..6dae821 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;
}
OpenPOWER on IntegriCloud