summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/update.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-12-06 21:03:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-12-06 21:03:14 +0000
commitff9bafeb0d201ee9eff719dedd6a13b355b27931 (patch)
tree3a91fdf291b4ec44c6472eaa2edc48adfda4ed92 /usr.bin/cvs/update.c
parent06cd0b351bf2244fbb9c05110c01487916237fcc (diff)
tighten vertical spacing for else; jfb ok
Diffstat (limited to 'usr.bin/cvs/update.c')
-rw-r--r--usr.bin/cvs/update.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c
index 398cb6bd0a4..6e6c6413e0b 100644
--- a/usr.bin/cvs/update.c
+++ b/usr.bin/cvs/update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: update.c,v 1.9 2004/11/26 16:23:50 jfb Exp $ */
+/* $OpenBSD: update.c,v 1.10 2004/12/06 21:03:13 deraadt Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -92,8 +92,7 @@ cvs_update(int argc, char **argv)
if (argc == 0) {
cvs_files = cvs_file_get(".", flags);
- }
- else {
+ } else {
/* don't perform ignore on explicitly listed files */
flags &= ~(CF_IGNORE | CF_RECURSE | CF_SORT);
cvs_files = cvs_file_getspec(argv, argc, flags);
@@ -131,8 +130,7 @@ cvs_update_file(CVSFILE *cf, void *arg)
root = cf->cf_parent->cf_ddat->cd_root;
cvs_sendreq(root, CVS_REQ_QUESTIONABLE,
CVS_FILE_NAME(cf));
- }
- else {
+ } else {
root = cf->cf_ddat->cd_root;
if ((cf->cf_parent == NULL) ||
(root != cf->cf_parent->cf_ddat->cd_root)) {
@@ -143,15 +141,13 @@ cvs_update_file(CVSFILE *cf, void *arg)
}
return (0);
- }
- else
+ } else
root = cf->cf_parent->cf_ddat->cd_root;
rf = NULL;
if (cf->cf_parent != NULL) {
repo = cf->cf_parent->cf_ddat->cd_repo;
- }
- else {
+ } else {
repo = NULL;
}