diff options
author | Ray Lai <ray@cvs.openbsd.org> | 2007-05-29 08:03:00 +0000 |
---|---|---|
committer | Ray Lai <ray@cvs.openbsd.org> | 2007-05-29 08:03:00 +0000 |
commit | 9d9e2540ed1f7952497ac7242f99c2c794870188 (patch) | |
tree | 1cd85fc4054d7c48b29fa1dc4f6303fc19547790 /usr.bin | |
parent | 7e9810fed17b3959f300ac0b99add3b5c6d10768 (diff) |
Get rid of another useless variable, another difference between our
diff code and diff(1).
OK niallo@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cvs/diff_internals.c | 8 | ||||
-rw-r--r-- | usr.bin/rcs/diff.c | 8 |
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; |