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); }