diff options
author | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-11 22:25:36 +0000 |
---|---|---|
committer | Niall O'Higgins <niallo@cvs.openbsd.org> | 2006-06-11 22:25:36 +0000 |
commit | cb7157f7d254cb62f0a154eb2c14d5188c0cc7f1 (patch) | |
tree | 8448c567180355142ba560a3f1cc051937edc000 /usr.bin/rcs/rcs.c | |
parent | 39bf14fcf2ce6643c512619ea60cb53799e44268 (diff) |
- clean up rcs_expand_keywords() a little more.
Diffstat (limited to 'usr.bin/rcs/rcs.c')
-rw-r--r-- | usr.bin/rcs/rcs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/rcs/rcs.c b/usr.bin/rcs/rcs.c index ec283c05ee0..ca0dc11eaf8 100644 --- a/usr.bin/rcs/rcs.c +++ b/usr.bin/rcs/rcs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcs.c,v 1.19 2006/06/11 22:21:23 niallo Exp $ */ +/* $OpenBSD: rcs.c,v 1.20 2006/06/11 22:25:35 niallo Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -2576,7 +2576,6 @@ rcs_expand_keywords(char *rcsfile, struct rcs_delta *rdp, BUF *bp, int mode) kwtype = 0; kwstr = NULL; - i = 0; /* * -z support for RCS @@ -2627,7 +2626,6 @@ rcs_expand_keywords(char *rcsfile, struct rcs_delta *rdp, BUF *bp, int mode) /* first following character has to be alphanumeric */ c++; - i++; if (!isalpha(*c)) { c = start; continue; @@ -2777,7 +2775,6 @@ rcs_expand_keywords(char *rcsfile, struct rcs_delta *rdp, BUF *bp, int mode) start += strlen(expbuf); memcpy(start, tbuf, tbuflen); xfree(tbuf); - i += sizdiff; c = start + strlen(expbuf); } } |