diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2010-09-03 08:37:53 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2010-09-03 08:37:53 +0000 |
commit | 974b6bcbfea068b1b5ad87f1e05fda2d78b91b6e (patch) | |
tree | 0af3db2f62986b0d0ea9d97ad6ce9e12682f7cdf /usr.bin | |
parent | 31577048c993b86df1ed418b5047ff7c780f65e5 (diff) |
Rename RCSNUM's fd to rf_fd, complies to other variable names and
OpenRCS.
ok xsa, zinovik
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/rcs.c | 10 | ||||
-rw-r--r-- | usr.bin/cvs/rcs.h | 4 |
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; |