summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorPatrick Wildt <patrick@cvs.openbsd.org>2021-10-26 10:45:56 +0000
committerPatrick Wildt <patrick@cvs.openbsd.org>2021-10-26 10:45:56 +0000
commit25106cac87287ff544f3fea0fe94c18dfab6df29 (patch)
tree7079eb9caf804ba0ddd4347c1cb79dd5820d84f4 /sys/arch/sparc64
parentfef28f9738951b950391abf3189c74fa51182aad (diff)
Remove more occurences of O_RDONLY in our bootloaders.
"just do it" deraadt@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/stand/ofwboot/boot.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/boot.c b/sys/arch/sparc64/stand/ofwboot/boot.c
index 9263c523890..bcb5062578c 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.37 2021/10/24 17:49:19 deraadt Exp $ */
+/* $OpenBSD: boot.c,v 1.38 2021/10/26 10:45:55 patrick 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.
@@ -287,8 +287,6 @@ loadrandom(char *path, char *buf, size_t buflen)
struct stat sb;
int fd, i, error = 0;
-#define O_RDONLY 0
-
fd = open(path, O_RDONLY);
if (fd == -1)
return -1;