diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-05-30 01:41:34 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-05-30 01:41:34 +0000 |
commit | fc58547fd2c590d62c87a320e3378cfc85833030 (patch) | |
tree | cd14d19eab233f237ab9d4553dc1b2da2e6a5b13 /sys/arch | |
parent | 7ba125129527f7ee8a65332ddb0f06cfad24095c (diff) |
even shorter
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/alpha/stand/boot/boot.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/alpha/stand/boot/boot.c b/sys/arch/alpha/stand/boot/boot.c index 11e8c562add..07bd4300ca9 100644 --- a/sys/arch/alpha/stand/boot/boot.c +++ b/sys/arch/alpha/stand/boot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.18 2005/05/30 01:31:12 deraadt Exp $ */ +/* $OpenBSD: boot.c,v 1.19 2005/05/30 01:41:33 deraadt Exp $ */ /* $NetBSD: boot.c,v 1.10 1997/01/18 01:58:33 cgd Exp $ */ /* @@ -83,12 +83,10 @@ main() prom_getenv(PROM_E_BOOTED_FILE, boot_file, sizeof(boot_file)); prom_getenv(PROM_E_BOOTED_OSFLAGS, boot_flags, sizeof(boot_flags)); - if (boot_file[0] != 0) + if (boot_file[0] != '\0') { (void)printf("Boot file: %s %s\n", boot_file, boot_flags); - - if (boot_file[0] != '\0') name = boot_file; - else + } else name = "bsd"; win = (loadfile(name, &entry) == 0); if (!win) |