diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2006-03-17 07:32:04 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2006-03-17 07:32:04 +0000 |
commit | 44ca898c50779cd84ff2bed6cbbd045763b11108 (patch) | |
tree | 19991e559f47771d41a652d82bd2e50b605476b2 /usr.bin/rcs/ci.c | |
parent | 45ae4194cfa278c1ec75c7bf097027ff73912310 (diff) |
Remove unused variables len and i, change `end' to size_t type.
Found by lint.
OK niallo@
Diffstat (limited to 'usr.bin/rcs/ci.c')
-rw-r--r-- | usr.bin/rcs/ci.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/rcs/ci.c b/usr.bin/rcs/ci.c index f5278cb0e70..e9e382f46a8 100644 --- a/usr.bin/rcs/ci.c +++ b/usr.bin/rcs/ci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ci.c,v 1.121 2006/03/16 04:04:57 ray Exp $ */ +/* $OpenBSD: ci.c,v 1.122 2006/03/17 07:32:03 ray Exp $ */ /* * Copyright (c) 2005, 2006 Niall O'Higgins <niallo@openbsd.org> * All rights reserved. @@ -864,16 +864,15 @@ static int checkin_keywordscan(char *data, RCSNUM **rev, time_t *date, char **author, char **state) { - size_t len; - u_int i, j, found, end; + size_t end; + u_int j, found; char *c, *kwstr, *start, buf[128]; c = start = kwstr = NULL; - i = found = 0; + found = 0; - len = strlen(data); - for (c = data; *c != '\0' && i < len; c++) { + for (c = data; *c != '\0'; c++) { if (*c == '$') { start = c; c++; |