summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/chio/chio.c5
-rw-r--r--bin/mt/mt.c6
-rw-r--r--lib/libutil/util.h3
3 files changed, 6 insertions, 8 deletions
diff --git a/bin/chio/chio.c b/bin/chio/chio.c
index 49180f25cc4..93b1c45adee 100644
--- a/bin/chio/chio.c
+++ b/bin/chio/chio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: chio.c,v 1.19 2006/06/13 19:35:17 deraadt Exp $ */
+/* $OpenBSD: chio.c,v 1.20 2006/06/14 02:14:25 krw Exp $ */
/* $NetBSD: chio.c,v 1.1.1.1 1996/04/03 00:34:38 thorpej Exp $ */
/*
@@ -670,8 +670,7 @@ check_source_drive(int unit)
* Try to make it accessible by doing an mt offline.
*/
tapedev = parse_tapedev(_PATH_CH_CONF, changer_name, unit);
- mtfd = opendev(tapedev, O_RDONLY, OPENDEV_PART | OPENDEV_DRCT,
- NULL);
+ mtfd = opendev(tapedev, O_RDONLY, OPENDEV_PART, NULL);
if (mtfd == -1)
err(1, "%s drive %d (%s): open", changer_name, unit, tapedev);
if (ioctl(mtfd, MTIOCTOP, &mtoffl) == -1)
diff --git a/bin/mt/mt.c b/bin/mt/mt.c
index a5a8c8e565c..b1d271e2321 100644
--- a/bin/mt/mt.c
+++ b/bin/mt/mt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mt.c,v 1.28 2006/06/01 05:42:01 krw Exp $ */
+/* $OpenBSD: mt.c,v 1.29 2006/06/14 02:14:25 krw Exp $ */
/* $NetBSD: mt.c,v 1.14.2.1 1996/05/27 15:12:11 mrg Exp $ */
/*
@@ -40,7 +40,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)mt.c 8.2 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: mt.c,v 1.28 2006/06/01 05:42:01 krw Exp $";
+static char rcsid[] = "$OpenBSD: mt.c,v 1.29 2006/06/14 02:14:25 krw Exp $";
#endif
#endif /* not lint */
@@ -179,7 +179,7 @@ main(int argc, char *argv[])
flags = comp->c_ronly ? O_RDONLY : O_WRONLY | O_CREAT;
if ((mtfd = host ? rmtopen(tape, flags) : opendev(tape, flags,
- OPENDEV_PART | OPENDEV_DRCT, &realtape)) < 0) {
+ OPENDEV_PART, &realtape)) < 0) {
if (errno != 0)
warn("%s", host ? tape : realtape);
exit(2);
diff --git a/lib/libutil/util.h b/lib/libutil/util.h
index a76f425dbc9..aac35cf7360 100644
--- a/lib/libutil/util.h
+++ b/lib/libutil/util.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.h,v 1.26 2004/07/13 21:09:48 millert Exp $ */
+/* $OpenBSD: util.h,v 1.27 2006/06/14 02:14:25 krw Exp $ */
/* $NetBSD: util.h,v 1.2 1996/05/16 07:00:22 thorpej Exp $ */
/*-
@@ -50,7 +50,6 @@
* opendev() specific operation flags.
*/
#define OPENDEV_PART 0x01 /* Try to open the raw partition. */
-#define OPENDEV_DRCT 0x02 /* Obsolete (now default behavior). */
#define OPENDEV_BLCK 0x04 /* Open block, not character device. */
/*