summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordownsj <downsj@openbsd.org>1996-06-12 07:58:41 +0000
committerdownsj <downsj@openbsd.org>1996-06-12 07:58:41 +0000
commit040d5637400eaf4b2a654ebca39a99e13539a44f (patch)
tree6dde079cda130055730c388d4623cad2373e3e3d
parentnotdef NTP, do not build ntp_gettime/ntp_adjtime (diff)
downloadwireguard-openbsd-040d5637400eaf4b2a654ebca39a99e13539a44f.tar.xz
wireguard-openbsd-040d5637400eaf4b2a654ebca39a99e13539a44f.zip
ok, so I didn't think of it last night
-rw-r--r--bin/mt/mt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/mt/mt.c b/bin/mt/mt.c
index fbc282e5fed..0e4e0768897 100644
--- a/bin/mt/mt.c
+++ b/bin/mt/mt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mt.c,v 1.6 1996/06/11 11:20:22 downsj Exp $ */
+/* $OpenBSD: mt.c,v 1.7 1996/06/12 07:58:41 downsj Exp $ */
/* $NetBSD: mt.c,v 1.14.2.1 1996/05/27 15:12:11 mrg Exp $ */
/*
@@ -221,7 +221,6 @@ opendev(path, flags, mode, realpath)
{
int fd;
static char namebuf[256];
- const char *parts = "abcdefgh"; /* enough for now */
*realpath = path;
@@ -230,7 +229,7 @@ opendev(path, flags, mode, realpath)
if (path[0] != '/') {
/* first try raw partition (for removable drives) */
(void)snprintf(namebuf, sizeof(namebuf), "%sr%s%c",
- _PATH_DEV, path, parts[RAW_PART]);
+ _PATH_DEV, path, 'a' + RAW_PART);
fd = open(namebuf, flags, mode);
if ((fd < 0) && (errno == ENOENT)) {