summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2010-09-03 08:37:52 +0000
committertobias <tobias@openbsd.org>2010-09-03 08:37:52 +0000
commit3bc49d0c3f454afad422c8ceded36ac11ae7c600 (patch)
treeb6a48b0417b2490ec989d72ed9e7dab2d73d3f1c
parentMake second parameter of poll() the correct type. Removes compile warning. (diff)
downloadwireguard-openbsd-3bc49d0c3f454afad422c8ceded36ac11ae7c600.tar.xz
wireguard-openbsd-3bc49d0c3f454afad422c8ceded36ac11ae7c600.zip
Rename RCSNUM's fd to rf_fd, complies to other variable names and
OpenRCS. ok xsa, zinovik
-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;