summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/add.c
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-08 20:23:07 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-08 20:23:07 +0000
commit5ac301306651352959dfd895dbe104d697113afb (patch)
tree2183ae1c25bc16288e9bf737f9986eb7557ea900 /usr.bin/cvs/add.c
parent9fa623ffe070cdd21399ed8cc80a59858a937900 (diff)
minor simplification in if () statement from Joris Vink
Diffstat (limited to 'usr.bin/cvs/add.c')
-rw-r--r--usr.bin/cvs/add.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c
index c1dc703d9f8..19f661e0070 100644
--- a/usr.bin/cvs/add.c
+++ b/usr.bin/cvs/add.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: add.c,v 1.8 2004/12/07 17:10:56 tedu Exp $ */
+/* $OpenBSD: add.c,v 1.9 2004/12/08 20:23:06 jfb Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -103,8 +103,7 @@ cvs_add_file(CVSFILE *cf, void *arg)
struct cvsroot *root;
if (cf->cf_type == DT_DIR) {
- if (cf->cf_cvstat == CVS_FST_UNKNOWN) {
- } else {
+ if (cf->cf_cvstat != CVS_FST_UNKNOWN) {
root = cf->cf_ddat->cd_root;
if ((cf->cf_parent == NULL) ||
(root != cf->cf_parent->cf_ddat->cd_root)) {