summaryrefslogtreecommitdiff
path: root/sbin/restore
diff options
context:
space:
mode:
authorAlexander Hall <halex@cvs.openbsd.org>2012-07-14 08:58:19 +0000
committerAlexander Hall <halex@cvs.openbsd.org>2012-07-14 08:58:19 +0000
commit13e38dd7fccb77e9f864ab0b10ecfa7e5a803709 (patch)
treebc0009f49652d3a204f3e4d0e92c2c2dca426c3d /sbin/restore
parentefa6dcb5e448ab50cd6bd5d18172e220571dbe03 (diff)
replace (somewhat) magic numbers with constants
ok krw@
Diffstat (limited to 'sbin/restore')
-rw-r--r--sbin/restore/tape.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/restore/tape.c b/sbin/restore/tape.c
index 6bf713215e8..8f4660da801 100644
--- a/sbin/restore/tape.c
+++ b/sbin/restore/tape.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tape.c,v 1.39 2011/06/27 23:40:57 tedu Exp $ */
+/* $OpenBSD: tape.c,v 1.40 2012/07/14 08:58:18 halex Exp $ */
/* $NetBSD: tape.c,v 1.26 1997/04/15 07:12:25 lukem Exp $ */
/*
@@ -195,7 +195,7 @@ setup(void)
Vprintf(stdout, "Verify tape and initialize maps\n");
#ifdef RRESTORE
if (host)
- mt = rmtopen(magtape, 0);
+ mt = rmtopen(magtape, O_RDONLY);
else
#endif
if (pipein)
@@ -358,7 +358,7 @@ again:
#ifdef RRESTORE
if (host)
- mt = rmtopen(magtape, 0);
+ mt = rmtopen(magtape, O_RDONLY);
else
#endif
mt = open(magtape, O_RDONLY);