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 | |
parent | 95f8b3b622e71b0d5494fc82e3fff4143340fa44 (diff) |
- zap unused 'rf_ref' member of RCSFILE structure.
spotted by joris@
-rw-r--r-- | usr.bin/cvs/rcs.c | 8 | ||||
-rw-r--r-- | usr.bin/cvs/rcs.h | 3 |
2 files changed, 2 insertions, 9 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); diff --git a/usr.bin/cvs/rcs.h b/usr.bin/cvs/rcs.h index 550edd7d606..743f7639bce 100644 --- a/usr.bin/cvs/rcs.h +++ b/usr.bin/cvs/rcs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.h,v 1.43 2005/12/27 16:05:21 niallo Exp $ */ +/* $OpenBSD: rcs.h,v 1.44 2005/12/30 16:53:55 niallo Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -173,7 +173,6 @@ struct rcs_delta { typedef struct rcs_file { char *rf_path; - u_int rf_ref; mode_t rf_mode; u_int rf_flags; |