diff options
author | seungha.son <seungha.son@samsung.com> | 2017-01-10 23:00:33 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.vlan103.tizen.org> | 2017-01-10 23:00:33 -0800 |
commit | be1d91e23067a79eaa3571556de7c3984d81382f (patch) | |
tree | 37517fff89f1bcb6f768c5361123407c4ea79e62 | |
parent | f48956835ed018478f7ad8212855891c7d9d3158 (diff) | |
parent | 4e95345e417dc81a504a7f87e498b5c2b31ceb51 (diff) | |
download | notification-be1d91e23067a79eaa3571556de7c3984d81382f.tar.gz notification-be1d91e23067a79eaa3571556de7c3984d81382f.tar.bz2 notification-be1d91e23067a79eaa3571556de7c3984d81382f.zip |
Merge "Modified type definitions" into tizen_3.0
-rwxr-xr-x | src/notification_setting.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/notification_setting.c b/src/notification_setting.c index aa2df98..8e82987 100755 --- a/src/notification_setting.c +++ b/src/notification_setting.c @@ -866,7 +866,7 @@ static gint _dnd_allow_exception_compare(gconstpointer a, gconstpointer b) dnd_allow_exception_data_a = (dnd_allow_exception_h)a; - if (dnd_allow_exception_data_a->type == (int)b) + if (dnd_allow_exception_data_a->type == GPOINTER_TO_INT(b)) return 0; return -1; @@ -882,7 +882,7 @@ EXPORT_API int notification_system_setting_get_dnd_allow_exceptions(notification return NOTIFICATION_ERROR_INVALID_PARAMETER; } - list = g_list_find_custom(system_setting->dnd_allow_exceptions, (gconstpointer)type, (GCompareFunc)_dnd_allow_exception_compare); + list = g_list_find_custom(system_setting->dnd_allow_exceptions, GINT_TO_POINTER(type), (GCompareFunc)_dnd_allow_exception_compare); if (list) { dnd_allow_exception_data = (dnd_allow_exception_h)list->data; *value = dnd_allow_exception_data->value; @@ -905,7 +905,7 @@ EXPORT_API int notification_system_setting_set_dnd_allow_exceptions(notification } list = g_list_first(system_setting->dnd_allow_exceptions); - list = g_list_find_custom(list, (gconstpointer)type, (GCompareFunc)_dnd_allow_exception_compare); + list = g_list_find_custom(list, GINT_TO_POINTER(type), (GCompareFunc)_dnd_allow_exception_compare); if (list) { dnd_allow_exception_data = (dnd_allow_exception_h)list->data; |