]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Backed out bad/unneded cleanup
authorhno <>
Thu, 18 Oct 2001 01:50:50 +0000 (01:50 +0000)
committerhno <>
Thu, 18 Oct 2001 01:50:50 +0000 (01:50 +0000)
lib/util.c

index c0a310edfa6615825288ad59d2a64cc876a843ac..9f50ccdb27e8161faa86ba007ad59f457896300c 100644 (file)
@@ -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 */