From a64ce921481297615d2308e9f8b6bb707e750c85 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 2 May 2005 19:33:53 +0000 Subject: [PATCH] pow is alreay used as a function ... so lets call it power instead git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@476 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/strftime.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/strftime.c b/src/strftime.c index f349bbf..3fb860f 100644 --- a/src/strftime.c +++ b/src/strftime.c @@ -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]); } } } -- 2.11.0