summaryrefslogtreecommitdiffstats
path: root/sbin/sysinstall/stage1.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-10-20 19:30:56 +0000
committerache <ache@FreeBSD.org>1994-10-20 19:30:56 +0000
commit8400fa64f52817a035a08ac48e31461cfe68b98e (patch)
treec0611ae6a4881585ac6f86ba1c7acd1b6177f3b0 /sbin/sysinstall/stage1.c
parent18ed6a9a0321bcd2ecf82d06ea7575d823c7bef5 (diff)
downloadFreeBSD-src-8400fa64f52817a035a08ac48e31461cfe68b98e.zip
FreeBSD-src-8400fa64f52817a035a08ac48e31461cfe68b98e.tar.gz
remove unneded includes
use dialog functions properly move alloc_memory early to prevent core dump at stage 3 Change 25x80 to 24x80 Fix setenv diagnostic Fix Fatal to call end_dialog()
Diffstat (limited to 'sbin/sysinstall/stage1.c')
-rw-r--r--sbin/sysinstall/stage1.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/sbin/sysinstall/stage1.c b/sbin/sysinstall/stage1.c
index a946aad..035ed86 100644
--- a/sbin/sysinstall/stage1.c
+++ b/sbin/sysinstall/stage1.c
@@ -20,7 +20,6 @@
#include <string.h>
#include <unistd.h>
#include <stdarg.h>
-#include <ncurses.h>
#include <sys/types.h>
#include <sys/errno.h>
@@ -189,7 +188,7 @@ select_disk()
AskAbort(scratch);
valid = 0;
}
- clear();
+ dialog_clear();
} while (!valid);
return(atoi(selection) - 1);
}
@@ -220,12 +219,12 @@ select_partition(int disk)
AskAbort(scratch);
valid = 0;
}
- clear();
+ dialog_clear();
choice = atoi(selection);
if (!choice)
if (dialog_yesno(TITLE, "Installing to the whole disk will erase all its present data.\n\nAre you sure you want to do this?", 10, 75))
valid = 0;
- clear();
+ dialog_clear();
} while (!valid);
return(atoi(selection) - 1);
@@ -238,7 +237,6 @@ stage1()
int ok = 0;
int ready = 0;
- alloc_memory();
while (!ready) {
ready = 1;
@@ -257,7 +255,7 @@ stage1()
AskAbort(scratch);
if (!dialog_yesno(TITLE, "Are you sure you wish to proceed?",
10, 75)) {
- clear();
+ dialog_clear();
clear_mbr(mbr);
ok = 1;
}
@@ -267,7 +265,7 @@ stage1()
if (custom_install)
if (!dialog_yesno(TITLE, "Do you wish to edit the DOS partition table?",
10, 75)) {
- clear();
+ dialog_clear();
edit_mbr(mbr, &avail_disklabels[inst_disk]);
}
@@ -281,7 +279,7 @@ stage1()
sprintf(scratch, "The DOS partition table is inconsistent.\n\n%s\n\nDo you wish to edit it by hand?", errmsg);
if (!dialog_yesno(TITLE, scratch, 10, 75)) {
edit_mbr(mbr, &avail_disklabels[inst_disk]);
- clear();
+ dialog_clear();
} else {
AskAbort("");
ok = 1;
@@ -300,7 +298,7 @@ stage1()
AskAbort("");
ready = 0;
}
- clear();
+ dialog_clear();
}
}
OpenPOWER on IntegriCloud