- Fixed misused pointer for storing enum value
Change-Id: Ic62e7513e4e99aa39b6c5027b26296233e94926f
Signed-off-by: Semun Lee <semun.lee@samsung.com>
static gint __disable_chk_func(gconstpointer data1, gconstpointer data2)
{
pkgmgrinfo_node_x *node = (pkgmgrinfo_node_x *)data1;
static gint __disable_chk_func(gconstpointer data1, gconstpointer data2)
{
pkgmgrinfo_node_x *node = (pkgmgrinfo_node_x *)data1;
- pkgmgrinfo_appinfo_disable_type *value =
- (pkgmgrinfo_appinfo_disable_type *)data2;
+ pkgmgrinfo_appinfo_disable_type value = GPOINTER_TO_INT(data2);
if (value == E_APPINFO_DISABLE_TYPE_PKG)
return (node->prop == E_PMINFO_APPINFO_PROP_PKG_DISABLE)
if (value == E_APPINFO_DISABLE_TYPE_PKG)
return (node->prop == E_PMINFO_APPINFO_PROP_PKG_DISABLE)
if (filter == NULL)
return false;
if (filter == NULL)
return false;
- link = g_slist_find_custom(filter->list, &type, __disable_chk_func);
+ link = g_slist_find_custom(filter->list, GINT_TO_POINTER(type), __disable_chk_func);