summaryrefslogtreecommitdiff
path: root/src/util/snprintf.c
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-12-28 18:55:00 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-12-28 18:55:00 +0000
commitfe4ba087da02fb06b41e936626521f0fd77434e3 (patch)
treee0829b3f03596b79e7f80f827ed0da20468da299 /src/util/snprintf.c
parentb26a4e235d92a4c2d91fb26db10f5034e7a88bb8 (diff)
Rename "round" to "myround". Otherwise, the function "round" has the
same name as the one from <math.h> (which is #included) but has a different return type, which is an error for gcc 4.0. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3944 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/util/snprintf.c')
-rw-r--r--src/util/snprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/snprintf.c b/src/util/snprintf.c
index 561dced0..61390c9c 100644
--- a/src/util/snprintf.c
+++ b/src/util/snprintf.c
@@ -586,7 +586,7 @@ static LDOUBLE pow10 (int exp)
return result;
}
-static long round (LDOUBLE value)
+static long myround (LDOUBLE value)
{
long intpart;
@@ -680,7 +680,7 @@ static int 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 = myround ((pow10 (max)) * (ufvalue - intpart));
if (fracpart >= pow10 (max))
{