summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/rcs.c
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2005-12-30 16:53:56 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2005-12-30 16:53:56 +0000
commit49c424225609213a4fbe66dd8a06df36c54d64cf (patch)
treeb9d68ff5b3dd233192b6e49c9c513e0ba33756eb /usr.bin/cvs/rcs.c
parent95f8b3b622e71b0d5494fc82e3fff4143340fa44 (diff)
- zap unused 'rf_ref' member of RCSFILE structure.
spotted by joris@
Diffstat (limited to 'usr.bin/cvs/rcs.c')
-rw-r--r--usr.bin/cvs/rcs.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index 893836cc517..3cccf2b0d01 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.120 2005/12/30 16:48:33 niallo Exp $ */
+/* $OpenBSD: rcs.c,v 1.121 2005/12/30 16:53:55 niallo Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -339,7 +339,6 @@ rcs_open(const char *path, int flags, ...)
memset(rfp, 0, sizeof(*rfp));
rfp->rf_path = xstrdup(path);
- rfp->rf_ref = 1;
rfp->rf_flags = flags | RCS_SLOCK;
rfp->rf_mode = fmode;
@@ -380,11 +379,6 @@ rcs_close(RCSFILE *rfp)
struct rcs_lock *rlp;
struct rcs_sym *rsp;
- if (rfp->rf_ref > 1) {
- rfp->rf_ref--;
- return;
- }
-
if ((rfp->rf_flags & RCS_WRITE) && !(rfp->rf_flags & RCS_SYNCED))
rcs_write(rfp);