fix build warning 49/152149/1 accepted/tizen_5.0_unified accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.0 tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.0/unified/20181102.014404 accepted/tizen/5.5/unified/20191031.025129 accepted/tizen/5.5/unified/mobile/hotfix/20201027.084821 accepted/tizen/5.5/unified/wearable/hotfix/20201027.114428 accepted/tizen/unified/20170927.063230 submit/tizen/20170926.073745 submit/tizen_5.0/20181101.000002 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 submit/tizen_5.5_wearable_hotfix/20201026.184303 tizen_5.5.m2_release
authorYoungjae Shin <yj99.shin@samsung.com>
Mon, 25 Sep 2017 07:07:09 +0000 (16:07 +0900)
committerYoungjae Shin <yj99.shin@samsung.com>
Mon, 25 Sep 2017 07:07:09 +0000 (16:07 +0900)
Change-Id: Ic4ea6cd3c7ca49374d43d531f67914ea28dbcb2d

collation.c
util_func.c

index 8a13344..e1e966b 100644 (file)
@@ -476,7 +476,7 @@ int db_util_create_collation(
        ret = __db_util_dl_load_icu();
        DB_UTIL_RETV_IF(ret != DB_UTIL_OK, DB_UTIL_ERROR);
 
-       const char *lang = vconf_get_str(VCONFKEY_LANGSET);
+       char *lang = vconf_get_str(VCONFKEY_LANGSET);
        /* get current locale */
        if (lang) {
                icu_symbol.icu_uloc_setDefault(lang, &status);
index 1911992..cd6c87c 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <string.h>
 #include <unistd.h>
+#include <time.h>
 
 #include "util-func.h"
 #include "collation.h"