diff options
author | ache <ache@FreeBSD.org> | 1994-11-17 19:44:55 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1994-11-17 19:44:55 +0000 |
commit | ba821de391cf93e00c3ad0d0e13a54a03c58c063 (patch) | |
tree | 7d36dabf1103af780f285a57470d934dd2c6db64 | |
parent | afba98eb13a513b66e251e335c26610e1f8a5fde (diff) | |
download | FreeBSD-src-ba821de391cf93e00c3ad0d0e13a54a03c58c063.zip FreeBSD-src-ba821de391cf93e00c3ad0d0e13a54a03c58c063.tar.gz |
Use -1, -1 where is possible
-rw-r--r-- | sbin/sysinstall/main.c | 4 | ||||
-rw-r--r-- | sbin/sysinstall/mbr.c | 2 | ||||
-rw-r--r-- | sbin/sysinstall/stage0.c | 4 | ||||
-rw-r--r-- | sbin/sysinstall/stage1.c | 16 | ||||
-rw-r--r-- | sbin/sysinstall/stage2.c | 6 | ||||
-rw-r--r-- | sbin/sysinstall/stage4.c | 4 | ||||
-rw-r--r-- | sbin/sysinstall/stage5.c | 4 | ||||
-rw-r--r-- | sbin/sysinstall/utils.c | 8 |
8 files changed, 24 insertions, 24 deletions
diff --git a/sbin/sysinstall/main.c b/sbin/sysinstall/main.c index 03c537d..e2a729c 100644 --- a/sbin/sysinstall/main.c +++ b/sbin/sysinstall/main.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: main.c,v 1.14 1994/11/11 23:22:56 jkh Exp $ + * $Id: main.c,v 1.15 1994/11/12 05:40:26 phk Exp $ * */ @@ -45,7 +45,7 @@ handle_intr(int sig) dialog_update(); dialog_msgbox("User Interrupt", "User interrupted. Aborting the installation", - 10, 72, 1); + -1, -1, 1); ExitSysinstall(); } diff --git a/sbin/sysinstall/mbr.c b/sbin/sysinstall/mbr.c index dc46f94..cc5d19a 100644 --- a/sbin/sysinstall/mbr.c +++ b/sbin/sysinstall/mbr.c @@ -257,7 +257,7 @@ edit_mbr(struct mbr *mbr, struct disklabel *label) { dialog_msgbox("DOS partition table editor", - "This editor is still under construction :-)", 10, 75, 1); + "This editor is still under construction :-)", -1, -1, 1); show_mbr(mbr); } diff --git a/sbin/sysinstall/stage0.c b/sbin/sysinstall/stage0.c index 1805996..b973501 100644 --- a/sbin/sysinstall/stage0.c +++ b/sbin/sysinstall/stage0.c @@ -46,7 +46,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:", 18, 75, 7, 7, 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, 7, 7, welcome, selection)) ExitSysinstall(); switch (atoi(selection)) { @@ -75,7 +75,7 @@ evil_goto: case 6: dialog_msgbox("Sorry!", "This feature is not currently implemented.", - 6, 75, 1); + -1, -1, 1); goto evil_goto; break; diff --git a/sbin/sysinstall/stage1.c b/sbin/sysinstall/stage1.c index 4399f34..0641d38 100644 --- a/sbin/sysinstall/stage1.c +++ b/sbin/sysinstall/stage1.c @@ -198,7 +198,7 @@ select_disk() avail_disknames[i]); } - if (dialog_menu("FreeBSD Installation", scratch, 10, 75, 5, no_disks, + if (dialog_menu("FreeBSD Installation", scratch, -1, -1, 5, no_disks, options, selection)) { dialog_clear(); sprintf(scratch,"\n\n\nYou did not select a valid disk.\n\n"); @@ -232,7 +232,7 @@ select_partition(int disk) mbr->dospart[i].dp_size * 512 / (1024 * 1024)); } if (dialog_menu(TITLE, - scratch, 10, 75, 5, 5, options, selection)) { + scratch, -1, -1, 5, 5, options, selection)) { sprintf(scratch,"You did not select a valid partition"); dialog_clear(); AskAbort(scratch); @@ -243,7 +243,7 @@ select_partition(int disk) if (choice == -1) { whole_disk = 1; choice = 0; - if (dialog_yesno(TITLE, "\n\nInstalling to the whole disk will erase all its current data.\n\nAre you sure you want to do this?", 10, 75)) { + if (dialog_yesno(TITLE, "\n\nInstalling to the whole disk will erase all its current data.\n\nAre you sure you want to do this?", -1, -1)) { valid = 0; whole_disk = 0; } @@ -387,7 +387,7 @@ leave: AskAbort(scratch); if (!dialog_yesno(TITLE, "Are you sure you wish to proceed?", - 10, 75)) { + -1, -1)) { dialog_clear(); if (clear_mbr(mbr, boot1) == -1) { sprintf(scratch, "\n\nCouldn't create new master boot record.\n\n%s", errmsg); @@ -400,7 +400,7 @@ leave: } if (custom_install) if (!dialog_yesno(TITLE, "Do you wish to edit the DOS partition table?", - 10, 75)) { + -1, -1)) { dialog_clear(); edit_mbr(mbr, &avail_disklabels[inst_disk]); } @@ -415,7 +415,7 @@ leave: ok = 1; } else { sprintf(scratch, "The DOS partition table is inconsistent.\n\n%s\nDo you wish to edit it by hand?", errmsg); - if (!dialog_yesno(TITLE, scratch, 10, 75)) { + if (!dialog_yesno(TITLE, scratch, -1, -1)) { dialog_clear(); edit_mbr(mbr, &avail_disklabels[inst_disk]); } else { @@ -432,7 +432,7 @@ leave: default_disklabel(&avail_disklabels[inst_disk], mbr->dospart[inst_part].dp_size, mbr->dospart[inst_part].dp_start); - dialog_msgbox(TITLE, "This is an experimental disklabel configuration\nmenu. It doesn't perform any validation of the entries\nas yet so BE SURE YOU TYPE THINGS CORRECTLY.\n\n Hit escape to quit the editor.\n\nThere may be some delay exiting because of a dialog bug", 20,70,1); + dialog_msgbox(TITLE, "This is an experimental disklabel configuration\nmenu. It doesn't perform any validation of the entries\nas yet so BE SURE YOU TYPE THINGS CORRECTLY.\n\n Hit escape to quit the editor.\n\nThere may be some delay exiting because of a dialog bug", -1,-1,1); dialog_clear(); edit_disklabel(&avail_disklabels[inst_disk]); @@ -443,7 +443,7 @@ leave: /* ready could have been reset above */ if (ready) { - if (dialog_yesno(TITLE, "We are now ready to format the hard disk for FreeBSD.\n\nSome or all of the disk will be overwritten during this process.\n\nAre you sure you wish to proceed ?", 10, 75)) { + if (dialog_yesno(TITLE, "We are now ready to format the hard disk for FreeBSD.\n\nSome or all of the disk will be overwritten during this process.\n\nAre you sure you wish to proceed ?", -1, -1)) { dialog_clear(); AskAbort("Do you want to quit?"); ready = 0; diff --git a/sbin/sysinstall/stage2.c b/sbin/sysinstall/stage2.c index 2f86cf7..e863f11 100644 --- a/sbin/sysinstall/stage2.c +++ b/sbin/sysinstall/stage2.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: stage2.c,v 1.13 1994/11/06 01:16:29 jkh Exp $ + * $Id: stage2.c,v 1.14 1994/11/11 07:58:08 jkh Exp $ * */ @@ -36,7 +36,7 @@ stage2() FILE *f1; int i, j; - if (dialog_yesno("Last Chance!", "Are you sure you want to proceed with the installation?\nLast chance before wiping your hard disk!", 8, 72)) + if (dialog_yesno("Last Chance!", "Are you sure you want to proceed with the installation?\nLast chance before wiping your hard disk!", -1, -1)) exit(0); /* Sort in mountpoint order */ memset(Fsize, 0, sizeof Fsize); @@ -133,6 +133,6 @@ stage2() /* Don't do error-check, we reboot anyway... */ unmount(dbuf, 0); } - dialog_msgbox(TITLE,"Remove the floppy from the drive and hit return to reboot from the hard disk",6, 75, 1); + dialog_msgbox(TITLE,"Remove the floppy from the drive and hit return to reboot from the hard disk", -1, -1, 1); dialog_clear(); } diff --git a/sbin/sysinstall/stage4.c b/sbin/sysinstall/stage4.c index dce7ccf..45a846b 100644 --- a/sbin/sysinstall/stage4.c +++ b/sbin/sysinstall/stage4.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: stage4.c,v 1.6 1994/11/17 14:12:37 jkh Exp $ + * $Id: stage4.c,v 1.7 1994/11/17 14:18:43 jkh Exp $ * */ @@ -38,7 +38,7 @@ stage4() while (1) { dialog_msgbox(TITLE, - "Insert CPIO floppy in floppy drive 0", 6, 75, 1); + "Insert CPIO floppy in floppy drive 0", -1, -1, 1); ffd = open("/dev/fd0a",O_RDONLY); if (ffd > 0) break; diff --git a/sbin/sysinstall/stage5.c b/sbin/sysinstall/stage5.c index f00cc51..4f7efb8 100644 --- a/sbin/sysinstall/stage5.c +++ b/sbin/sysinstall/stage5.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: stage5.c,v 1.14 1994/11/08 14:04:19 jkh Exp $ + * $Id: stage5.c,v 1.15 1994/11/11 07:58:09 jkh Exp $ * */ @@ -36,7 +36,7 @@ stage5() { int exec_sh = 1; - if (!dialog_yesno("End of initial installation", msg, 11, 76)) + if (!dialog_yesno("End of initial installation", msg, -1, -1)) exec_sh = 0; end_dialog(); dialog_active=0; diff --git a/sbin/sysinstall/utils.c b/sbin/sysinstall/utils.c index dc1e656..a241bed 100644 --- a/sbin/sysinstall/utils.c +++ b/sbin/sysinstall/utils.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: utils.c,v 1.27 1994/11/16 14:42:22 ache Exp $ + * $Id: utils.c,v 1.28 1994/11/17 14:12:38 jkh Exp $ * */ @@ -101,7 +101,7 @@ AskAbort(char *fmt, ...) vsnprintf(p, 2048, fmt, ap); va_end(ap); strcat(p, "\n\nDo you wish to abort the installation?"); - if (!dialog_yesno("Abort", p, 15, 60)) { + if (!dialog_yesno("Abort", p, -1, -1)) { dialog_clear(); Abort(); } @@ -113,7 +113,7 @@ void Abort() { if (dialog_yesno("Exit sysinstall","\n\nAre you sure you want to quit?", - 10, 40)) { + -1, -1)) { dialog_clear(); return; } @@ -132,7 +132,7 @@ ExitSysinstall() if (dialog_active) { clear(); dialog_msgbox(TITLE, "\n\nCan't reboot machine -- hit reset button", - 5,30,0); + -1,-1,0); } else fprintf(stderr, "Can't reboot the machine -- hit the reset button"); while(1); |