diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-12-30 16:53:56 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2005-12-30 16:53:56 +0000 |
commit | 49c424225609213a4fbe66dd8a06df36c54d64cf (patch) | |
tree | b9d68ff5b3dd233192b6e49c9c513e0ba33756eb /usr.bin/cvs/rcs.c | |
parent | 95f8b3b622e71b0d5494fc82e3fff4143340fa44 (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.c | 8 |
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); |