From: Sangyoon Jang Date: Wed, 10 May 2017 07:52:45 +0000 (+0900) Subject: Fix build warnings X-Git-Tag: accepted/tizen/unified/20170510.183503~1 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fappfw%2Fpkgmgr-info.git;a=commitdiff_plain;h=b457d5162f7a3e078dc8331a3b463dbba4926ae2 Fix build warnings Change-Id: Ia73bbd58f8b4e88d974bc483f898e8da4bfd25f9 Signed-off-by: Sangyoon Jang --- diff --git a/src/pkgmgrinfo_archiveinfo.c b/src/pkgmgrinfo_archiveinfo.c index fef594f..b61a24a 100644 --- a/src/pkgmgrinfo_archiveinfo.c +++ b/src/pkgmgrinfo_archiveinfo.c @@ -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; diff --git a/src/pkgmgrinfo_private.h b/src/pkgmgrinfo_private.h index fd2b636..c529ab2 100644 --- a/src/pkgmgrinfo_private.h +++ b/src/pkgmgrinfo_private.h @@ -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