summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/rcs.c10
-rw-r--r--usr.bin/cvs/rcs.h4
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/cvs/rcs.c b/usr.bin/cvs/rcs.c
index f767d4a0d98..4805e2cdf62 100644
--- a/usr.bin/cvs/rcs.c
+++ b/usr.bin/cvs/rcs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.c,v 1.299 2010/09/02 00:21:41 tobias Exp $ */
+/* $OpenBSD: rcs.c,v 1.300 2010/09/03 08:37:52 tobias Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -269,7 +269,7 @@ rcs_open(const char *path, int fd, int flags, ...)
rfp->rf_path = xstrdup(path);
rfp->rf_flags = flags | RCS_SLOCK | RCS_SYNCED;
rfp->rf_mode = fmode;
- rfp->fd = fd;
+ rfp->rf_fd = fd;
rfp->rf_dead = 0;
TAILQ_INIT(&(rfp->rf_delta));
@@ -1640,7 +1640,7 @@ rcs_parse_init(RCSFILE *rfp)
pdp->rp_pttype = RCS_TOK_ERR;
- if ((pdp->rp_file = fdopen(rfp->fd, "r")) == NULL)
+ if ((pdp->rp_file = fdopen(rfp->rf_fd, "r")) == NULL)
fatal("fdopen: `%s'", rfp->rf_path);
pdp->rp_buf = xmalloc((size_t)RCS_BUFSIZE);
@@ -1658,8 +1658,8 @@ rcs_parse_init(RCSFILE *rfp)
if (rfp->rf_flags & RCS_PARSE_FULLY) {
rcs_parse_deltatexts(rfp, NULL);
- (void)close(rfp->fd);
- rfp->fd = -1;
+ (void)close(rfp->rf_fd);
+ rfp->rf_fd = -1;
}
rfp->rf_flags |= RCS_SYNCED;
diff --git a/usr.bin/cvs/rcs.h b/usr.bin/cvs/rcs.h
index bebb520fbde..702e13dc4e5 100644
--- a/usr.bin/cvs/rcs.h
+++ b/usr.bin/cvs/rcs.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rcs.h,v 1.95 2010/08/31 20:42:45 tobias Exp $ */
+/* $OpenBSD: rcs.h,v 1.96 2010/09/03 08:37:52 tobias Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -169,7 +169,7 @@ struct rcs_delta {
typedef struct rcs_file {
- int fd;
+ int rf_fd;
int rf_dead;
char *rf_path;
mode_t rf_mode;