summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniallo <niallo@openbsd.org>2005-12-30 16:48:33 +0000
committerniallo <niallo@openbsd.org>2005-12-30 16:48:33 +0000
commit35ddab3e246baaeb43909e77aa6f5741792c33c2 (patch)
treeb70538d095a7abe1b7d7db5c626bdcd2a0165460
parentconsistency tweak, from daniel matic; (diff)
downloadwireguard-openbsd-35ddab3e246baaeb43909e77aa6f5741792c33c2.tar.xz
wireguard-openbsd-35ddab3e246baaeb43909e77aa6f5741792c33c2.zip
- simplify an unecessary if/else construct in rcs_open()
spotted by joris@
-rw-r--r--usr.bin/cvs/rcs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 377e92d34c5..893836cc517 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.119 2005/12/30 16:45:35 niallo Exp $ */
+/* $OpenBSD: rcs.c,v 1.120 2005/12/30 16:48:33 niallo Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -348,8 +348,8 @@ rcs_open(const char *path, int flags, ...)
TAILQ_INIT(&(rfp->rf_symbols));
TAILQ_INIT(&(rfp->rf_locks));
- if (rfp->rf_flags & RCS_CREATE) {
- } else if (rcs_parse_init(rfp) < 0) {
+ if (!(rfp->rf_flags & RCS_CREATE)
+ && (rcs_parse_init(rfp) < 0)) {
rcs_close(rfp);
return (NULL);
}