diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-11-20 13:10:43 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-11-20 13:10:43 +0000 |
commit | 7f474332e48e1508c540a29f43e5f4ad8698695e (patch) | |
tree | aa2cc6b7e01d671e61fbd455f6b274e983c4343a /sys/arch/sparc64/stand | |
parent | 652cbf04211ee24c295b4c27b53e24a6a72d05bc (diff) |
some more installboot cleanup from gapz@dud-t.org
Diffstat (limited to 'sys/arch/sparc64/stand')
-rw-r--r-- | sys/arch/sparc64/stand/installboot/installboot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/stand/installboot/installboot.c b/sys/arch/sparc64/stand/installboot/installboot.c index 0699cda4257..1b94d2193a9 100644 --- a/sys/arch/sparc64/stand/installboot/installboot.c +++ b/sys/arch/sparc64/stand/installboot/installboot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: installboot.c,v 1.8 2010/11/19 18:11:21 deraadt Exp $ */ +/* $OpenBSD: installboot.c,v 1.9 2010/11/20 13:10:42 deraadt Exp $ */ /* $NetBSD: installboot.c,v 1.8 2001/02/19 22:48:59 cgd Exp $ */ /*- @@ -194,7 +194,7 @@ main(argc, argv) if ((protofd = open(proto, O_RDONLY)) < 0) err(1, "open: %s", proto); - if (fstat(protofd, &sb) < 0) + if (fstat(protofd, &sb) == -1) err(1, "fstat: %s", proto); if (sb.st_size == 0) errx(1, "%s is empty", proto); |