Code

improved scaling for --logarithmic mode ... -- beat.zahnd space.unibe.ch
[rrdtool-all.git] / program / src / strftime.c
index f349bbf4e0f4be4c2b3fac120140f209c65a4a6c..3fb860f610ea6c7e6716e820b5253a984d9f8db1 100644 (file)
@@ -278,7 +278,7 @@ typedef void *va_list;
  *
  */
 
-static int pow[5] = { 1, 10, 100, 1000, 10000 };
+static int powers[5] = { 1, 10, 100, 1000, 10000 };
 
 /**
  * static void strfmt(char *str, char *fmt);
@@ -316,8 +316,8 @@ static void strfmt(char *str, const char *fmt, ...)
                         ival = va_arg(vp, int);
                         while (ilen)
                         {
-                              ival %= pow[ilen--];
-                              *str++ = (char)('0' + ival / pow[ilen]);
+                              ival %= powers[ilen--];
+                              *str++ = (char)('0' + ival / powers[ilen]);
                         }
                   }
             }