summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorjfb <jfb@openbsd.org>2004-12-28 19:51:07 +0000
committerjfb <jfb@openbsd.org>2004-12-28 19:51:07 +0000
commit43579e5b9567fd98f58fdaf4548555949a0cc98d (patch)
tree85451f48fc76a55ae47685e836c8a5834b95c6a0 /usr.bin/cvs/diff.c
parentadd more standard patterns to ignore; jfb ok (diff)
downloadwireguard-openbsd-43579e5b9567fd98f58fdaf4548555949a0cc98d.tar.xz
wireguard-openbsd-43579e5b9567fd98f58fdaf4548555949a0cc98d.zip
use Argument instead of Argumentx when sending a revision or date
this makes the -r and -D options work with diff
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index f071ce5f8a2..93d9bbf2154 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.13 2004/12/14 21:40:39 jfb Exp $ */
+/* $OpenBSD: diff.c,v 1.14 2004/12/28 19:51:07 jfb Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -445,17 +445,17 @@ cvs_diff_sendflags(struct cvsroot *root, struct diff_arg *dap)
if (dap->rev1 != NULL) {
cvs_sendarg(root, "-r", 0);
- cvs_sendarg(root, dap->rev1, 1);
+ cvs_sendarg(root, dap->rev1, 0);
} else if (dap->date1 != NULL) {
cvs_sendarg(root, "-D", 0);
- cvs_sendarg(root, dap->date1, 1);
+ cvs_sendarg(root, dap->date1, 0);
}
if (dap->rev2 != NULL) {
cvs_sendarg(root, "-r", 0);
- cvs_sendarg(root, dap->rev2, 1);
+ cvs_sendarg(root, dap->rev2, 0);
} else if (dap->date2 != NULL) {
cvs_sendarg(root, "-D", 0);
- cvs_sendarg(root, dap->date2, 1);
+ cvs_sendarg(root, dap->date2, 0);
}
return (0);