From f74aa433d7838ae53d3a7e1b45b0fff26ae00ea3 Mon Sep 17 00:00:00 2001 From: ray Date: Tue, 29 May 2007 08:02:59 +0000 Subject: Get rid of another useless variable, another difference between our diff code and diff(1). OK niallo@ --- usr.bin/cvs/diff_internals.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr.bin/cvs/diff_internals.c') 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; -- cgit v1.2.3-59-g8ed1b