diff options
author | dfr <dfr@FreeBSD.org> | 1999-09-01 09:11:14 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-09-01 09:11:14 +0000 |
commit | 780e80b50782553f48d800ffd0e9f9830fb85364 (patch) | |
tree | 08eb96f597e6ba09e1d80f6443db86127437e530 /sys/boot/alpha/common | |
parent | f6c539b7049c35b0ee6eea4a8a7cd3c49d2f8770 (diff) | |
download | FreeBSD-src-780e80b50782553f48d800ffd0e9f9830fb85364.zip FreeBSD-src-780e80b50782553f48d800ffd0e9f9830fb85364.tar.gz |
* Fix a stack of warnings.
* Make it possible to type a filename to boot1 so that it is possible to
recover from fatally broken versions of /boot/loader.
* Make a start at a CD boot program (not yet functional).
Diffstat (limited to 'sys/boot/alpha/common')
-rw-r--r-- | sys/boot/alpha/common/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/boot/alpha/common/main.c b/sys/boot/alpha/common/main.c index b9c5ff7..9c802ae 100644 --- a/sys/boot/alpha/common/main.c +++ b/sys/boot/alpha/common/main.c @@ -68,9 +68,8 @@ extend_heap() { struct rpb *hwrpb = (struct rpb *)HWRPB_ADDR; struct mddt *mddtp; - struct mddt_cluster *memc; + struct mddt_cluster *memc = 0; int i; - unsigned long total = 0; unsigned long startpfn; vm_offset_t startva; vm_offset_t startpte; @@ -107,7 +106,7 @@ extend_heap() } } -void +int main(void) { int i; @@ -188,6 +187,8 @@ main(void) open("/boot", O_RDONLY); interact(); /* doesn't return */ + + return 0; } COMMAND_SET(reboot, "reboot", "reboot the system", command_reboot); |