diff options
author | sos <sos@FreeBSD.org> | 1998-04-08 20:00:03 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 1998-04-08 20:00:03 +0000 |
commit | 6ee5cb0947bef4893f876565c3f02a132cc305ef (patch) | |
tree | cadf795241b4470601c26fcdaabe23fa7c800d8c | |
parent | e3aed302321145d529c56b0e1bfa93e1bfa4ce80 (diff) | |
download | FreeBSD-src-6ee5cb0947bef4893f876565c3f02a132cc305ef.zip FreeBSD-src-6ee5cb0947bef4893f876565c3f02a132cc305ef.tar.gz |
Fix a minor bug (|| instead of |)
-rw-r--r-- | sys/i386/isa/wst.c | 6 | ||||
-rw-r--r-- | sys/pc98/pc98/wst.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/isa/wst.c b/sys/i386/isa/wst.c index 2802f4e..ea0b446 100644 --- a/sys/i386/isa/wst.c +++ b/sys/i386/isa/wst.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: wst.c,v 1.4 1998/03/10 12:00:24 sos Exp sos $ + * $Id: wst.c,v 1.2 1998/03/17 10:45:18 sos Exp $ */ #include "wdc.h" @@ -371,12 +371,12 @@ wstclose(dev_t dev, int flags, int fmt, struct proc *p) int lun = UNIT(dev); struct wst *t = wsttab[lun]; - /* Flush buffers, some drives fail here, but they report ctl = 0 */ + /* Flush buffers, some drives fail here, but they should report ctl = 0 */ if (t->cap.ctl) wst_write_filemark(t, 0); /* Write filemark if data written to tape */ - if (t->flags & (WST_DATA_WRITTEN || WST_FM_WRITTEN) == WST_DATA_WRITTEN) + if (t->flags & (WST_DATA_WRITTEN | WST_FM_WRITTEN) == WST_DATA_WRITTEN) wst_write_filemark(t, WEOF_WRITE_MASK); /* If minor is even rewind on close */ diff --git a/sys/pc98/pc98/wst.c b/sys/pc98/pc98/wst.c index 2802f4e..ea0b446 100644 --- a/sys/pc98/pc98/wst.c +++ b/sys/pc98/pc98/wst.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: wst.c,v 1.4 1998/03/10 12:00:24 sos Exp sos $ + * $Id: wst.c,v 1.2 1998/03/17 10:45:18 sos Exp $ */ #include "wdc.h" @@ -371,12 +371,12 @@ wstclose(dev_t dev, int flags, int fmt, struct proc *p) int lun = UNIT(dev); struct wst *t = wsttab[lun]; - /* Flush buffers, some drives fail here, but they report ctl = 0 */ + /* Flush buffers, some drives fail here, but they should report ctl = 0 */ if (t->cap.ctl) wst_write_filemark(t, 0); /* Write filemark if data written to tape */ - if (t->flags & (WST_DATA_WRITTEN || WST_FM_WRITTEN) == WST_DATA_WRITTEN) + if (t->flags & (WST_DATA_WRITTEN | WST_FM_WRITTEN) == WST_DATA_WRITTEN) wst_write_filemark(t, WEOF_WRITE_MASK); /* If minor is even rewind on close */ |