From a71e9c181d2feeb104755b3897cd8638d8bf06e3 Mon Sep 17 00:00:00 2001 From: downsj <> Date: Tue, 2 Jul 1996 07:57:54 +0000 Subject: [PATCH] Use getrawpartition(). --- src/lib/libutil/opendev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/libutil/opendev.c b/src/lib/libutil/opendev.c index 557b4e52..9d1dda8a 100644 --- a/src/lib/libutil/opendev.c +++ b/src/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 #include #include -#include #include #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); }