summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/diff_internals.c8
-rw-r--r--usr.bin/rcs/diff.c8
2 files changed, 6 insertions, 10 deletions
diff --git a/usr.bin/cvs/diff_internals.c b/usr.bin/cvs/diff_internals.c
index bb23118d6c2..ad5ffe7e376 100644
--- a/usr.bin/cvs/diff_internals.c
+++ b/usr.bin/cvs/diff_internals.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff_internals.c,v 1.9 2007/05/29 00:19:10 ray Exp $ */
+/* $OpenBSD: diff_internals.c,v 1.10 2007/05/29 08:02:59 ray Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -571,12 +571,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;
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;