Bump to iniparser 3.2 56/103956/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable tizen_3.0 tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170104.142753 accepted/tizen/3.0.m2/tv/20170104.143339 accepted/tizen/3.0.m2/wearable/20170104.143729 accepted/tizen/3.0/common/20161213.163649 accepted/tizen/3.0/ivi/20161213.024520 accepted/tizen/3.0/mobile/20161213.024442 accepted/tizen/3.0/tv/20161213.024500 accepted/tizen/3.0/wearable/20161213.024516 submit/tizen_3.0.m2/20170104.093752 submit/tizen_3.0/20161212.062430
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 27 Sep 2016 05:50:40 +0000 (14:50 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 12 Dec 2016 02:19:44 +0000 (11:19 +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: I9168dfb375597a5509aaaf6efc658321d84cb8fa
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);
 
 /*-------------------------------------------------------------------------*/
 /**