summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-10-12 17:43:19 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-10-12 17:43:19 +0000
commit8ac5bf546c1e38a8888578a01975058e7b591eec (patch)
tree0da5f1083ff5abd0d2c26e78aba340ce7196328e /usr.bin/rcs
parent3944de70ab0b936d1fa629fe3f9556aff50510d4 (diff)
minor knf;
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r--usr.bin/rcs/co.c4
-rw-r--r--usr.bin/rcs/rcsclean.c4
-rw-r--r--usr.bin/rcs/rcsdiff.c10
-rw-r--r--usr.bin/rcs/rcsprog.c4
4 files changed, 11 insertions, 11 deletions
diff --git a/usr.bin/rcs/co.c b/usr.bin/rcs/co.c
index d9503ccd9f0..50e910f8ec6 100644
--- a/usr.bin/rcs/co.c
+++ b/usr.bin/rcs/co.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: co.c,v 1.11 2005/10/12 17:13:30 deraadt Exp $ */
+/* $OpenBSD: co.c,v 1.12 2005/10/12 17:43:18 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -165,7 +165,7 @@ checkout_main(int argc, char **argv)
cvs_buf_free(bp);
rcs_close(file);
- if (verbose) {
+ if (verbose == 1) {
printf("revision %s ", buf);
if (lock == LOCK_LOCK)
printf("(locked)");
diff --git a/usr.bin/rcs/rcsclean.c b/usr.bin/rcs/rcsclean.c
index df395398706..20af41e88ae 100644
--- a/usr.bin/rcs/rcsclean.c
+++ b/usr.bin/rcs/rcsclean.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsclean.c,v 1.5 2005/10/12 17:13:30 deraadt Exp $ */
+/* $OpenBSD: rcsclean.c,v 1.6 2005/10/12 17:43:18 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -174,7 +174,7 @@ rcsclean_file(char *fname, RCSNUM *rev)
free(c2);
if (match) {
- if (verbose)
+ if (verbose == 1)
printf("rm -f %s\n", fname);
if (nflag == 0)
(void)unlink(fname);
diff --git a/usr.bin/rcs/rcsdiff.c b/usr.bin/rcs/rcsdiff.c
index a3484b5aa6e..a2c3aed57ac 100644
--- a/usr.bin/rcs/rcsdiff.c
+++ b/usr.bin/rcs/rcsdiff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsdiff.c,v 1.9 2005/10/12 17:13:30 deraadt Exp $ */
+/* $OpenBSD: rcsdiff.c,v 1.10 2005/10/12 17:43:18 xsa Exp $ */
/*
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
* All rights reserved.
@@ -97,7 +97,7 @@ rcsdiff_main(int argc, char **argv)
}
for (i = 0; i < argc; i++) {
- if (verbose)
+ if (verbose == 1)
cvs_printf("%s\n", RCS_DIFF_DIV);
if (rcs_statfile(argv[i], fpath, sizeof(fpath)) < 0)
@@ -150,7 +150,7 @@ rcsdiff_file(RCSFILE *rfp, RCSNUM *rev, const char *filename)
char rbuf[64];
rcsnum_tostr(rev, rbuf, sizeof(rbuf));
- if (verbose)
+ if (verbose == 1)
printf("retrieving revision %s\n", rbuf);
if ((b1 = rcs_getrev(rfp, rev)) == NULL) {
@@ -196,7 +196,7 @@ rcsdiff_rev(RCSFILE *rfp, RCSNUM *rev1, RCSNUM *rev2)
char rbuf[64];
rcsnum_tostr(rev1, rbuf, sizeof(rbuf));
- if (verbose)
+ if (verbose == 1)
printf("retrieving revision %s\n", rbuf);
if ((b1 = rcs_getrev(rfp, rev1)) == NULL) {
@@ -205,7 +205,7 @@ rcsdiff_rev(RCSFILE *rfp, RCSNUM *rev1, RCSNUM *rev2)
}
rcsnum_tostr(rev2, rbuf, sizeof(rbuf));
- if (verbose)
+ if (verbose == 1)
printf("retrieving revision %s\n", rbuf);
if ((b2 = rcs_getrev(rfp, rev2)) == NULL) {
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c
index 5f601a64b30..0bcacd92091 100644
--- a/usr.bin/rcs/rcsprog.c
+++ b/usr.bin/rcs/rcsprog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcsprog.c,v 1.26 2005/10/12 17:13:30 deraadt Exp $ */
+/* $OpenBSD: rcsprog.c,v 1.27 2005/10/12 17:43:18 xsa Exp $ */
/*
* Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -86,7 +86,7 @@ rcs_statfile(char *fname, char *out, size_t len)
}
strlcpy(out, fpath, len);
- if (verbose == 1 && strcmp(__progname, "rcsclean")) {
+ if ((verbose == 1) && (strcmp(__progname, "rcsclean"))) {
if (!strcmp(__progname, "co")) {
printf("%s --> ", fpath);
if ((s = strrchr(filev, ',')) != NULL) {