summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNiall O'Higgins <niallo@cvs.openbsd.org>2006-06-11 22:25:36 +0000
committerNiall O'Higgins <niallo@cvs.openbsd.org>2006-06-11 22:25:36 +0000
commitcb7157f7d254cb62f0a154eb2c14d5188c0cc7f1 (patch)
tree8448c567180355142ba560a3f1cc051937edc000 /usr.bin
parent39bf14fcf2ce6643c512619ea60cb53799e44268 (diff)
- clean up rcs_expand_keywords() a little more.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rcs/rcs.c5
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);
}
}