summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorjfb <jfb@openbsd.org>2005-02-27 00:22:08 +0000
committerjfb <jfb@openbsd.org>2005-02-27 00:22:08 +0000
commit1b6534b8672e606723e14c4be10b95fa7f3a6754 (patch)
tree61e070fc84af25afb3e8f5797e0bccd89695c964 /usr.bin/cvs/diff.c
parentspecify direction (diff)
downloadwireguard-openbsd-1b6534b8672e606723e14c4be10b95fa7f3a6754.tar.xz
wireguard-openbsd-1b6534b8672e606723e14c4be10b95fa7f3a6754.zip
Many improvements to the RCS support:
- make it possible to specify creation and the file mode in rcs_open() - implicitly write the contents to disk on rcs_close() if the RCS handle has been changed - fix a bug in the output of the `expand' keyword - add functions to retrieve and modify the expansion mode - rcs_parse() shouldn't be available to the outside - empty string instead of `(null)' if there is no description ok Joris
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index 83dab55c144..2deefe08358 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.21 2005/02/25 20:32:48 jfb Exp $ */
+/* $OpenBSD: diff.c,v 1.22 2005/02/27 00:22:08 jfb Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -566,7 +566,7 @@ cvs_diff_file(struct cvs_file *cfp, void *arg)
snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s",
root->cr_dir, repo, diff_file, RCS_FILE_EXT);
- rf = rcs_open(rcspath, RCS_MODE_READ);
+ rf = rcs_open(rcspath, RCS_READ);
if (rf == NULL) {
cvs_ent_free(entp);
return (-1);