]> sjero.net Git - wget/commitdiff
[svn] Removed gcc 4.0 warnings, by Russ Allberry.
authorhniksic <devnull@localhost>
Sun, 9 Oct 2005 09:59:20 +0000 (02:59 -0700)
committerhniksic <devnull@localhost>
Sun, 9 Oct 2005 09:59:20 +0000 (02:59 -0700)
src/ChangeLog
src/snprintf.c

index cd5714b2989b41fb7cfe9226c0720fef3aa1bffb..171a4ef58e53f0ecac223b17973c599bfc59aa66 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-09  Russ Allbery  <rra@stanford.edu>
+
+       * snprintf.c: Remove round to round_int and pow10 to pow10_int, to
+       avoid warnings from GCC 4.0.
+
 2005-10-05  Mauro Tortonesi  <mauro@ferrara.linux.it>
 
        * retr.c: Changed semantics of no_proxy_match.
index a68350766db0540d4c2f0ece8078606e2a2d279d..057ccc2740362842a6967a586e16b9772faafa8a 100644 (file)
@@ -618,7 +618,7 @@ static LDOUBLE abs_val (LDOUBLE value)
   return result;
 }
 
-static LDOUBLE pow10 (int exp)
+static LDOUBLE pow10_int (int exp)
 {
   LDOUBLE result = 1;
 
@@ -631,7 +631,7 @@ static LDOUBLE pow10 (int exp)
   return result;
 }
 
-static LLONG round (LDOUBLE value)
+static LLONG round_int (LDOUBLE value)
 {
   LLONG intpart;
 
@@ -729,12 +729,12 @@ static int fmtfp (char *buffer, size_t *currlen, size_t maxlen,
     max = MAX_DIGITS;
 
   /* Factor of 10 with the needed number of digits, e.g. 1000 for max==3 */
-  mask10 = pow10 (max);
+  mask10 = pow10_int (max);
 
   /* We "cheat" by converting the fractional part to integer by
    * multiplying by a factor of 10
    */
-  fracpart = round (mask10 * (ufvalue - intpart));
+  fracpart = round_int (mask10 * (ufvalue - intpart));
 
   if (fracpart >= mask10)
   {