diff options
author | 2011-07-06 21:06:14 +0000 | |
---|---|---|
committer | 2011-07-06 21:06:14 +0000 | |
commit | 6585dff96fb846fe741f23cc10d59e9f522016e4 (patch) | |
tree | 7a4efab11d3e1fdf34daa39796a44f6d3a5080e7 /sys/kern/kern_physio.c | |
parent | fix that fscking "fgetln(): bad file descriptor" bug experienced by many. (diff) | |
download | wireguard-openbsd-6585dff96fb846fe741f23cc10d59e9f522016e4.tar.xz wireguard-openbsd-6585dff96fb846fe741f23cc10d59e9f522016e4.zip |
stylistic clean of buffer flags assignment to be more obviously not a
destructive assignment of flags.
ok oga@
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r-- | sys/kern/kern_physio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index dbec4415d02..4afd75b6c16 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_physio.c,v 1.35 2011/07/05 10:04:27 matthew Exp $ */ +/* $OpenBSD: kern_physio.c,v 1.36 2011/07/06 21:06:14 beck Exp $ */ /* $NetBSD: kern_physio.c,v 1.28 1997/05/19 10:43:28 pk Exp $ */ /*- @@ -105,7 +105,7 @@ physio(void (*strategy)(struct buf *), dev_t dev, int flags, * "Set by physio for raw transfers.", in addition * to the "busy" and read/write flag.) */ - bp->b_flags = B_BUSY | B_PHYS | B_RAW | flags; + bp->b_flags |= (B_BUSY | B_PHYS | B_RAW | flags); /* [set up the buffer for a maximum-sized transfer] */ bp->b_blkno = btodb(uio->uio_offset); |