summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/notification_internal.c4
-rwxr-xr-xsrc/notification_setting.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/notification_internal.c b/src/notification_internal.c
index 78a5314..298a097 100755
--- a/src/notification_internal.c
+++ b/src/notification_internal.c
@@ -272,7 +272,7 @@ EXPORT_API int notification_unresister_changed_cb_for_uid(
noti_cb_list = g_list_first(noti_cb_list);
delete_cb_list = g_list_find_custom(noti_cb_list, (gconstpointer)changed_cb,
- _noti_changed_compare);
+ (GCompareFunc)_noti_changed_compare);
if (delete_cb_list) {
noti_cb_info = g_list_nth_data(delete_cb_list, 0);
@@ -1216,7 +1216,7 @@ EXPORT_API int notification_unregister_detailed_changed_cb_for_uid(
noti_cb_list = g_list_first(noti_cb_list);
delete_cb_list = g_list_find_custom(noti_cb_list, (gconstpointer)detailed_changed_cb,
- _noti_detailed_changed_compare);
+ (GCompareFunc)_noti_detailed_changed_compare);
if (delete_cb_list) {
noti_cb_info = (notification_cb_info_s *)g_list_nth_data(delete_cb_list, 0);
diff --git a/src/notification_setting.c b/src/notification_setting.c
index 1aec2ce..488c649 100755
--- a/src/notification_setting.c
+++ b/src/notification_setting.c
@@ -977,7 +977,7 @@ EXPORT_API int notification_register_system_setting_dnd_changed_cb_for_uid(dnd_c
g_hash_table_insert(_noti_dnd_cb_hash, GUINT_TO_POINTER(uid), noti_dnd_list);
} else {
noti_dnd_found_list = g_list_find_custom(noti_dnd_list, (gconstpointer)callback,
- _noti_dnd_cb_compare);
+ (GCompareFunc)_noti_dnd_cb_compare);
if (noti_dnd_found_list) {
NOTIFICATION_ERR("Already existing callback");
free(dnd_data);
@@ -1013,7 +1013,7 @@ EXPORT_API int notification_unregister_system_setting_dnd_changed_cb_for_uid(dnd
return NOTIFICATION_ERROR_INVALID_PARAMETER;
noti_dnd_del_list = g_list_find_custom(noti_dnd_cb_list, (gconstpointer)callback,
- _noti_dnd_cb_compare);
+ (GCompareFunc)_noti_dnd_cb_compare);
if (noti_dnd_del_list) {
dnd_data = g_list_nth_data(noti_dnd_del_list, 0);