Fix build warnings 89/128489/1
authorSangyoon Jang <s89.jang@samsung.com>
Wed, 10 May 2017 07:52:45 +0000 (16:52 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 10 May 2017 07:52:54 +0000 (16:52 +0900)
Change-Id: Ia73bbd58f8b4e88d974bc483f898e8da4bfd25f9
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/pkgmgrinfo_archiveinfo.c
src/pkgmgrinfo_private.h

index fef594f..b61a24a 100644 (file)
@@ -220,7 +220,7 @@ API int pkgmgrinfo_archiveinfo_get_icon(pkgmgrinfo_archiveinfo_h handle,
        if (info->icon_buf == NULL)
                return PMINFO_R_ENOENT;
 
-       *icon = info->icon_buf;
+       *icon = (unsigned char *)info->icon_buf;
        *size = info->icon_size;
 
        return PMINFO_R_OK;
index fd2b636..c529ab2 100644 (file)
@@ -314,6 +314,7 @@ int __appinfo_check_installed_storage(application_x *appinfo);
 int __open_db(const char *path, sqlite3 **db, int flags);
 char *__get_type_from_path(const char *pkg_path);
 pkg_plugin_set *__load_library(const char *pkg_type);
+void __unload_library(const char *pkg_type);
 
 #define GLOBAL_USER tzplatform_getuid(TZ_SYS_GLOBALAPP_USER)
 #define REGULAR_USER 5000