diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2010-10-15 09:58:26 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2010-10-15 09:58:26 +0000 |
commit | b3298c6a74262bc14f1776c9b440c15dbbf0127e (patch) | |
tree | ad294e26446741f2e3a1962250a31a3422bf3232 /usr.bin | |
parent | cd40ba0cfbb9c6b94e74502c33c17184853e769f (diff) |
No need to remove RCS_PARSE flag from rf_flags after successfully parsing.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/rcs/rcsparse.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/rcs/rcsparse.c b/usr.bin/rcs/rcsparse.c index e411146f228..6c587e9100f 100644 --- a/usr.bin/rcs/rcsparse.c +++ b/usr.bin/rcs/rcsparse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsparse.c,v 1.1 2010/10/15 08:44:12 tobias Exp $ */ +/* $OpenBSD: rcsparse.c,v 1.2 2010/10/15 09:58:25 tobias Exp $ */ /* * Copyright (c) 2010 Tobias Stoeckmann <tobias@openbsd.org> * @@ -219,10 +219,8 @@ rcsparse_init(RCSFILE *rfp) { struct rcs_pdata *pdp; - if (rfp->rf_flags & RCS_PARSED) { - rfp->rf_flags &= ~RCS_PARSED; + if (rfp->rf_flags & RCS_PARSED) return (0); - } pdp = xmalloc(sizeof(*pdp)); pdp->rp_buf = xmalloc(RCS_BUFSIZE); @@ -1162,10 +1160,8 @@ rcsparse_deltatext(RCSFILE *rfp) if (rcsparse(rfp, sec_deltatext)) return (-1); - if (rfp->rf_flags & RCS_PARSED) { - rfp->rf_flags &= ~RCS_PARSED; + if (rfp->rf_flags & RCS_PARSED) rfp->rf_flags |= PARSED_DELTATEXTS; - } return (1); } |