summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/stand/installboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/alpha/stand/installboot.c')
-rw-r--r--sys/arch/alpha/stand/installboot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/alpha/stand/installboot.c b/sys/arch/alpha/stand/installboot.c
index 05ce1ece660..13ab38bda97 100644
--- a/sys/arch/alpha/stand/installboot.c
+++ b/sys/arch/alpha/stand/installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.c,v 1.9 1997/06/27 02:26:30 millert Exp $ */
+/* $OpenBSD: installboot.c,v 1.10 1997/10/27 16:52:03 millert Exp $ */
/* $NetBSD: installboot.c,v 1.2 1997/04/06 08:41:12 cgd Exp $ */
/*
@@ -136,7 +136,7 @@ main(argc, argv)
exit(1);
/* Open and check raw disk device */
- if ((devfd = open(dev, O_RDONLY, 0)) < 0)
+ if ((devfd = opendev(dev, O_RDONLY, OPENDEV_PART, &dev)) < 0)
err(1, "open: %s", dev);
if (fstat(devfd, &disksb) == -1)
err(1, "fstat: %s", dev);
@@ -191,7 +191,7 @@ main(argc, argv)
errx(1, "proto bootblocks too big");
#endif
- if ((devfd = open(dev, O_RDWR, 0)) < 0)
+ if ((devfd = opendev(dev, O_RDWR, OPENDEV_PART, &dev)) < 0)
err(1, "open: %s", dev);
if (lseek(devfd, DEV_BSIZE, SEEK_SET) != DEV_BSIZE)