diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-10-27 16:52:04 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-10-27 16:52:04 +0000 |
commit | 8a07e71d18b07f9f3c274d802f65aba118e67fdc (patch) | |
tree | fd90da6a1ca81a147be2843f6d57e025b1cfadca /sys/arch/alpha/stand | |
parent | 6737e63ef792c927a0832ff5b6ced92c442c11a1 (diff) |
Use opendev()
Diffstat (limited to 'sys/arch/alpha/stand')
-rw-r--r-- | sys/arch/alpha/stand/installboot.c | 6 |
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) |