diff options
author | 2007-05-29 08:02:59 +0000 | |
---|---|---|
committer | 2007-05-29 08:02:59 +0000 | |
commit | f74aa433d7838ae53d3a7e1b45b0fff26ae00ea3 (patch) | |
tree | 714daf0b47411b0a064621cee611e899d5a2f2e5 /usr.bin/cvs/diff_internals.c | |
parent | theo says degrees is spelled degrees (diff) | |
download | wireguard-openbsd-f74aa433d7838ae53d3a7e1b45b0fff26ae00ea3.tar.xz wireguard-openbsd-f74aa433d7838ae53d3a7e1b45b0fff26ae00ea3.zip |
Get rid of another useless variable, another difference between our
diff code and diff(1).
OK niallo@
Diffstat (limited to 'usr.bin/cvs/diff_internals.c')
-rw-r--r-- | usr.bin/cvs/diff_internals.c | 8 |
1 files changed, 3 insertions, 5 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; |