summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/status.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/status.c
parent06cd0b351bf2244fbb9c05110c01487916237fcc (diff)
tighten vertical spacing for else; jfb ok
Diffstat (limited to 'usr.bin/cvs/status.c')
-rw-r--r--usr.bin/cvs/status.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/cvs/status.c b/usr.bin/cvs/status.c
index d7ab962bcdf..7c1d2db3438 100644
--- a/usr.bin/cvs/status.c
+++ b/usr.bin/cvs/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.2 2004/11/26 16:23:50 jfb Exp $ */
+/* $OpenBSD: status.c,v 1.3 2004/12/06 21:03:13 deraadt Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -89,8 +89,7 @@ cvs_status(int argc, char **argv)
}
cvs_file_examine(cf, cvs_status_file, NULL);
- }
- else {
+ } else {
for (i = 0; i < argc; i++) {
cf = cvs_file_get(argv[i], flags);
}
@@ -126,15 +125,13 @@ cvs_status_file(CVSFILE *cfp, void *arg)
cvs_senddir(root, cfp);
return (0);
- }
- else
+ } else
root = cfp->cf_parent->cf_ddat->cd_root;
rf = NULL;
if (cfp->cf_parent != NULL) {
repo = cfp->cf_parent->cf_ddat->cd_repo;
- }
- else {
+ } else {
repo = NULL;
}
@@ -170,8 +167,7 @@ cvs_status_file(CVSFILE *cfp, void *arg)
if (root->cr_method != CVS_METHOD_LOCAL) {
cvs_sendreq(root, CVS_REQ_MODIFIED, CVS_FILE_NAME(cfp));
cvs_sendfile(root, fpath);
- }
- else {
+ } else {
snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s",
root->cr_dir, repo, CVS_FILE_NAME(cfp), RCS_FILE_EXT);