summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-07-02 07:57:55 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-07-02 07:57:55 +0000
commit6d559aba0dac9261aad1563f6e9d74de5202a542 (patch)
tree7dc70cf15175278755172dbf4da15a142a8adb33
parent56c563e32af388c2363991a1f6562f4388760a9e (diff)
Use getrawpartition().
-rw-r--r--lib/libutil/opendev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libutil/opendev.c b/lib/libutil/opendev.c
index 557b4e52ec7..9d1dda8ad83 100644
--- a/lib/libutil/opendev.c
+++ b/lib/libutil/opendev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: opendev.c,v 1.3 1996/06/20 10:46:02 deraadt Exp $ */
+/* $OpenBSD: opendev.c,v 1.4 1996/07/02 07:57:54 downsj Exp $ */
/*
* Copyright (c) 1996, Jason Downs. All rights reserved.
@@ -28,7 +28,6 @@
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
-#include <sys/disklabel.h>
#include <paths.h>
#include "util.h"
@@ -60,7 +59,8 @@ opendev(path, oflags, dflags, realpath)
* drives)
*/
(void)snprintf(namebuf, sizeof(namebuf),
- "%sr%s%c", _PATH_DEV, path, 'a' + RAW_PART);
+ "%sr%s%c", _PATH_DEV, path,
+ 'a' + getrawpartition());
fd = open(namebuf, oflags);
}