From 4604797bb5a0781fb3cafe43c05cb77dcbf859a0 Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Wed, 5 Sep 2012 15:26:02 -0400 Subject: [PATCH] Fixed gcc compiler built-in warnings ../compat/snprintf.c:496: warning: conflicting types for built-in function 'pow10' ../compat/snprintf.c:509: warning: conflicting types for built-in function 'round' --- compat/snprintf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/compat/snprintf.c b/compat/snprintf.c index 77853f1..8c228d4 100644 --- a/compat/snprintf.c +++ b/compat/snprintf.c @@ -493,7 +493,7 @@ static long double abs_val (long double value) return result; } -static long double pow10 (int exp) +static long double pow10_ (int exp) { long double result = 1; @@ -506,7 +506,7 @@ static long double pow10 (int exp) return result; } -static long round (long double value) +static long round_ (long double value) { long intpart; @@ -567,12 +567,12 @@ static void fmtfp (char *buffer, size_t *currlen, size_t maxlen, /* We "cheat" by converting the fractional part to integer by * multiplying by a factor of 10 */ - fracpart = round ((pow10 (max)) * (ufvalue - intpart)); + fracpart = round_ ((pow10_ (max)) * (ufvalue - intpart)); - if (fracpart >= pow10 (max)) + if (fracpart >= pow10_ (max)) { intpart++; - fracpart -= pow10 (max); + fracpart -= pow10_ (max); } #ifdef DEBUG_SNPRINTF -- 2.11.4.GIT