summaryrefslogtreecommitdiffstats
path: root/release/sysinstall
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1997-04-01 02:00:42 +0000
committerpst <pst@FreeBSD.org>1997-04-01 02:00:42 +0000
commite9b81e984575bb50652e1e974f2829e9c4e90029 (patch)
tree8b69b2da44fb6d1cda4380bb5ac4b34b3802c0d4 /release/sysinstall
parent9827ab07c420e236b1c5a3418ec16c94c049beff (diff)
downloadFreeBSD-src-e9b81e984575bb50652e1e974f2829e9c4e90029.zip
FreeBSD-src-e9b81e984575bb50652e1e974f2829e9c4e90029.tar.gz
Use mediaClose instead of shutdown
Diffstat (limited to 'release/sysinstall')
-rw-r--r--release/sysinstall/variable_load.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/release/sysinstall/variable_load.c b/release/sysinstall/variable_load.c
index 63b0d41..e48e3d6 100644
--- a/release/sysinstall/variable_load.c
+++ b/release/sysinstall/variable_load.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$
+ * $Id: variable_load.c,v 1.1 1997/03/19 10:09:28 jkh Exp $
*
* Copyright (c) 1997
* Paul Traina. All rights reserved.
@@ -81,7 +81,8 @@ variableLoad(dialogMenuItem * self)
if (DITEM_STATUS(mediaSetFloppy(NULL)) == DITEM_FAILURE ||
mediaDevice->init(mediaDevice)) {
msgConfirm("Unable to access floppy.");
- return DITEM_FAILURE | what;
+ what |= DITEM_FAILURE;
+ goto terminate_device;
}
fp = mediaDevice->get(mediaDevice, cp, TRUE);
@@ -107,7 +108,7 @@ terminate_file:
fclose(fp);
terminate_device:
- mediaDevice->shutdown(mediaDevice);
+ mediaClose();
return what;
}
OpenPOWER on IntegriCloud