From cb7157f7d254cb62f0a154eb2c14d5188c0cc7f1 Mon Sep 17 00:00:00 2001 From: Niall O'Higgins Date: Sun, 11 Jun 2006 22:25:36 +0000 Subject: - clean up rcs_expand_keywords() a little more. --- usr.bin/rcs/rcs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'usr.bin') 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 * 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); } } -- cgit v1.2.3