summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-05-29 08:03:00 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-05-29 08:03:00 +0000
commit9d9e2540ed1f7952497ac7242f99c2c794870188 (patch)
tree1cd85fc4054d7c48b29fa1dc4f6303fc19547790 /usr.bin/rcs
parent7e9810fed17b3959f300ac0b99add3b5c6d10768 (diff)
Get rid of another useless variable, another difference between our
diff code and diff(1). OK niallo@
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r--usr.bin/rcs/diff.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/rcs/diff.c b/usr.bin/rcs/diff.c
index d690956963b..88284ec88a3 100644
--- a/usr.bin/rcs/diff.c
+++ b/usr.bin/rcs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.17 2007/05/29 00:19:10 ray Exp $ */
+/* $OpenBSD: diff.c,v 1.18 2007/05/29 08:02:59 ray Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -585,12 +585,10 @@ static int
newcand(int x, int y, int pred)
{
struct cand *q;
- int newclistlen;
if (clen == clistlen) {
- newclistlen = clistlen * 11 / 10;
- clist = xrealloc(clist, newclistlen, sizeof(*clist));
- clistlen = newclistlen;
+ clistlen = clistlen * 11 / 10;
+ clist = xrealloc(clist, clistlen, sizeof(*clist));
}
q = clist + clen;
q->x = x;