From f885907fbd45ecd99eb3bbe61420ef3107361755 Mon Sep 17 00:00:00 2001 From: bde Date: Sun, 23 Nov 1997 11:56:18 +0000 Subject: Fixed misuse of O_ACCMODE. Cosmetic. Not fixed in: sound driver --- sys/scsi/st.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/scsi') diff --git a/sys/scsi/st.c b/sys/scsi/st.c index af96017..4bc0417 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -12,7 +12,7 @@ * on the understanding that TFS is not responsible for the correct * functioning of this software in any circumstances. * - * $Id: st.c,v 1.81 1997/09/07 10:08:23 joerg Exp $ + * $Id: st.c,v 1.82 1997/09/21 22:03:19 gibbs Exp $ */ /* @@ -424,7 +424,7 @@ struct scsi_link *sc_link) * file marks written on it when closed, even if not written to. * This is for SUN compatibility */ - if ((flags & O_ACCMODE) == FWRITE) + if (flags & FWRITE) st->flags |= ST_WRITTEN; /* PREVENT ALLOW MEDIUM REMOVAL is optional per the SCSI-2 specs */ -- cgit v1.1