git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@476
a5681a0c-68f1-0310-ab6d-
d61299d08faa
-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);
/**
* static void strfmt(char *str, char *fmt);
ival = va_arg(vp, int);
while (ilen)
{
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]);