From: hno <> Date: Thu, 18 Oct 2001 01:50:50 +0000 (+0000) Subject: Backed out bad/unneded cleanup X-Git-Tag: SQUID_3_0_PRE1~1343 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ebd3f27af02e8b1e0d79f5df54e71dd0bd8db3f6;p=thirdparty%2Fsquid.git Backed out bad/unneded cleanup --- diff --git a/lib/util.c b/lib/util.c index c0a310edfa..9f50ccdb27 100644 --- a/lib/util.c +++ b/lib/util.c @@ -1,6 +1,6 @@ /* - * $Id: util.c,v 1.82 2001/10/17 19:46:43 hno Exp $ + * $Id: util.c,v 1.83 2001/10/17 19:50:50 hno Exp $ * * DEBUG: * AUTHOR: Harvest Derived @@ -725,14 +725,12 @@ xpercent(double part, double whole) int xpercentInt(double part, double whole) { - double result; #if HAVE_RINT - result = rint(xpercent(part, whole)); + return (int) rint(xpercent(part, whole)); #else /* SCO 3.2v4.2 doesn't have rint() -- mauri@mbp.ee */ - result = floor(xpercent(part, whole) + 0.5); + return (int) floor(xpercent(part, whole) + 0.5); #endif - return (int) result; } /* somewhat safer division */