summaryrefslogtreecommitdiffstats
path: root/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch')
-rw-r--r--meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch24
1 files changed, 15 insertions, 9 deletions
diff --git a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch
index 8be8ac32a..45f2439c8 100644
--- a/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch
+++ b/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/libiniparser.c.patch
@@ -1,13 +1,19 @@
1--- a/ubi-utils/libiniparser.c 2012-04-30 23:59:40.000000000 +0200 1--- a/ubi-utils/libiniparser.c 2012-05-29 23:46:08.000000000 +0200
2+++ b/ubi-utils/libiniparser.c 2012-04-30 23:55:15.000000000 +0200 2+++ b/ubi-utils/libiniparser.c 2012-05-29 23:45:01.000000000 +0200
3@@ -333,7 +333,9 @@ 3@@ -327,6 +327,8 @@
4 4 the notfound value is returned.
5 str = iniparser_getstring(d, key, INI_INVALID_KEY); 5 */
6 /*--------------------------------------------------------------------------*/
7+/* Floating-point is not supported in klibc */
8+/*
9 double iniparser_getdouble(dictionary * d, char * key, double notfound)
10 {
11 char * str ;
12@@ -335,6 +337,7 @@
6 if (str==INI_INVALID_KEY) return notfound ; 13 if (str==INI_INVALID_KEY) return notfound ;
7- return atof(str); 14 return atof(str);
8+ double value;
9+ sscanf(str,"%lf",&value);
10+ return value;
11 } 15 }
16+*/
12 17
13 /*-------------------------------------------------------------------------*/ 18 /*-------------------------------------------------------------------------*/
19 /**