From d7934a2e8c0e35df9b0fccc47bffe65dca015dc6 Mon Sep 17 00:00:00 2001
From: Alberto Bertogli <albertito@blitiri.com.ar>
Date: Fri, 3 Jul 2009 00:18:01 -0300
Subject: [PATCH 14/25] libfiu: Use strtod() instead of strtof() for portability reasons

Even though it's super standard, some platforms (current Dragonfly BSD,
although it will be fixed in the future) do not provide strtof(), so we
use strtod().

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
---
 libfiu/fiu-rc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libfiu/fiu-rc.c b/libfiu/fiu-rc.c
index 11fddc4..92ef78c 100644
--- a/libfiu/fiu-rc.c
+++ b/libfiu/fiu-rc.c
@@ -116,7 +116,7 @@ static int rc_process_cmd(char *cmd)
 			tok = strtok_r(NULL, " ", &state);
 			if (tok == NULL)
 				return -1;
-			probability = strtof(tok, NULL);
+			probability = strtod(tok, NULL);
 			if (probability < 0 || probability > 1)
 				return -1;
 		}
-- 
1.6.2.2.646.gb214

