Bump to iniparser 3.2 05/89805/1 accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix sandbox/backup/iniparser_3.2_191210 tizen_4.0 tizen_4.0_tv tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/4.0/unified/20170816.012358 accepted/tizen/4.0/unified/20170828.222751 accepted/tizen/5.0/unified/20181102.024615 accepted/tizen/5.5/unified/20191031.011255 accepted/tizen/5.5/unified/mobile/hotfix/20201027.073929 accepted/tizen/5.5/unified/wearable/hotfix/20201027.100238 accepted/tizen/unified/20170608.072407 submit/tizen/20170607.084538 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100006 submit/tizen_5.0/20181101.000006 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 submit/tizen_5.5_wearable_hotfix/20201026.184307 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release tizen_5.5.m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 27 Sep 2016 05:50:40 +0000 (14:50 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 27 Sep 2016 05:51:41 +0000 (14:51 +0900)
[Model]
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] Bump to iniparser 3.2
[Cause & Measure] Bump to iniparser 3.2
[Checking Method] N/A

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: I81765c76d03d8ba3c557755b68234ef495ff18b5
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/iniparser.spec
src/iniparser.c
src/iniparser.h

index 25dae67..b0ed64e 100644 (file)
@@ -1,5 +1,5 @@
 Name:           iniparser
-Version:        4.0
+Version:        3.2
 Release:        0
 License:        MIT
 Summary:        Stand-alone ini file parsing library
index b01614f..0a8e4ba 100644 (file)
@@ -317,7 +317,7 @@ int iniparser_getsecnkeys(dictionary * d, char * s)
   This function returns NULL in case of error.
  */
 /*--------------------------------------------------------------------------*/
-char ** iniparser_getseckeys(const dictionary * d, const char * s, const char ** keys)
+char ** iniparser_getseckeys(dictionary * d, char * s)
 {
 
     char **keys;
@@ -349,8 +349,9 @@ char ** iniparser_getseckeys(const dictionary * d, const char * s, const char **
             i++;
         }
     }
+    free(keym);
+    return keys;
 
-    return (char**)keys;
 }
 
 /*-------------------------------------------------------------------------*/
@@ -368,17 +369,18 @@ char ** iniparser_getseckeys(const dictionary * d, const char * s, const char **
   the dictionary, do not free or modify it.
  */
 /*--------------------------------------------------------------------------*/
-char * iniparser_getstring(const dictionary * d, const char * key, const char * def)
+char * iniparser_getstring(dictionary * d, const char * key, char * def)
 {
-    const char * lc_key ;
+    char * lc_key ;
     char * sval ;
-    char tmp_str[ASCIILINESZ+1];
 
     if (d==NULL || key==NULL)
-        return (char*)def ;
+        return def ;
 
-    lc_key = strlwc(key, tmp_str, sizeof(tmp_str));
-    sval = (char*)dictionary_get(d, lc_key, def);
+    lc_key = xstrdup(key);
+    strlwc(lc_key);
+    sval = dictionary_get(d, lc_key, def);
+    free(lc_key);
     return sval ;
 }
 
index 11aa794..153ad07 100644 (file)
@@ -139,8 +139,7 @@ int iniparser_getsecnkeys(dictionary * d, char * s);
   This function returns NULL in case of error.
  */
 /*--------------------------------------------------------------------------*/
-char ** iniparser_getseckeys(const dictionary * d, const char * s, const char ** keys);
-
+char ** iniparser_getseckeys(dictionary * d, char * s);
 
 /*-------------------------------------------------------------------------*/
 /**
@@ -157,7 +156,7 @@ char ** iniparser_getseckeys(const dictionary * d, const char * s, const char **
   the dictionary, do not free or modify it.
  */
 /*--------------------------------------------------------------------------*/
-char * iniparser_getstring(const dictionary * d, const char * key, const char * def);
+char * iniparser_getstring(dictionary * d, const char * key, char * def);
 
 /*-------------------------------------------------------------------------*/
 /**