diff options
author | 2005-07-24 16:46:39 +0000 | |
---|---|---|
committer | 2005-07-24 16:46:39 +0000 | |
commit | 93c08a06a85f8c4835ed0cc9653fdcc4576f0934 (patch) | |
tree | ffa6bb04b3a26e14eaa8a66a2acf56561c7a478b /usr.bin/cvs/entries.c | |
parent | Be more permissive when checking the interrupt vector for devices tied to (diff) | |
download | wireguard-openbsd-93c08a06a85f8c4835ed0cc9653fdcc4576f0934.tar.xz wireguard-openbsd-93c08a06a85f8c4835ed0cc9653fdcc4576f0934.zip |
do not use `if (!var)' unless it's boolean, better use an == check;
ok jfb@ joris@.
Diffstat (limited to 'usr.bin/cvs/entries.c')
-rw-r--r-- | usr.bin/cvs/entries.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/entries.c b/usr.bin/cvs/entries.c index 8164b64af32..1d9a9e71fde 100644 --- a/usr.bin/cvs/entries.c +++ b/usr.bin/cvs/entries.c @@ -1,4 +1,4 @@ -/* $OpenBSD: entries.c,v 1.40 2005/07/21 11:42:24 xsa Exp $ */ +/* $OpenBSD: entries.c,v 1.41 2005/07/24 16:46:39 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -168,7 +168,7 @@ cvs_ent_close(CVSENTRIES *ep) { struct cvs_ent *ent; - if (!cvs_noexec && (ep->cef_flags & CVS_ENTF_WR) && + if ((cvs_noexec == 0) && (ep->cef_flags & CVS_ENTF_WR) && !(ep->cef_flags & CVS_ENTF_SYNC)) { /* implicit sync with disk */ (void)cvs_ent_write(ep); |