diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-10-24 17:49:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2021-10-24 17:49:20 +0000 |
commit | e4e05f78be131db9b43987c72b93a5836d7b468f (patch) | |
tree | f4f890a12317dc9a258a7f141492226715415a35 /sys/arch/sparc64 | |
parent | 9d5d4421c6a7791a58ac3480fbac697d5ff2fc12 (diff) |
#define open O_* flags in libsa/stand.h, so that bootblocks can use
O_RDONLY rather using 0
ok beck
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/stand/ofwboot/boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/boot.c b/sys/arch/sparc64/stand/ofwboot/boot.c index 2ecdd064807..9263c523890 100644 --- a/sys/arch/sparc64/stand/ofwboot/boot.c +++ b/sys/arch/sparc64/stand/ofwboot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.36 2021/01/30 21:06:45 deraadt Exp $ */ +/* $OpenBSD: boot.c,v 1.37 2021/10/24 17:49:19 deraadt Exp $ */ /* $NetBSD: boot.c,v 1.3 2001/05/31 08:55:19 mrg Exp $ */ /* * Copyright (c) 1997, 1999 Eduardo E. Horvath. All rights reserved. @@ -483,7 +483,7 @@ main(void) rc4_keysetup(&randomctx, rnddata, sizeof rnddata); rc4_skip(&randomctx, 1536); - if ((fd = open(bootline, 0)) < 0) { + if ((fd = open(bootline, O_RDONLY)) < 0) { printf("open %s: %s\n", opened_name, strerror(errno)); continue; } |