diff options
author | seungha.son <seungha.son@samsung.com> | 2016-11-29 14:57:04 +0900 |
---|---|---|
committer | seungha.son <seungha.son@samsung.com> | 2016-11-29 14:59:50 +0900 |
commit | 1bcc109d3f6a5cb693f154616dd667f9b46b7a42 (patch) | |
tree | f5607744ba2d94fad32a0e6c413b6bb2aabb65d5 | |
parent | 7fe2ac856f547ef7f0bb9c0e21f365a958557b3d (diff) | |
download | notification-1bcc109d3f6a5cb693f154616dd667f9b46b7a42.tar.gz notification-1bcc109d3f6a5cb693f154616dd667f9b46b7a42.tar.bz2 notification-1bcc109d3f6a5cb693f154616dd667f9b46b7a42.zip |
Add GCompareFunc typecasting
Signed-off-by: seungha.son <seungha.son@samsung.com>
Change-Id: I97782d6446d7a49f4e1c816817e1f136ac3fe328
-rwxr-xr-x | src/notification_internal.c | 4 | ||||
-rwxr-xr-x | src/notification_setting.c | 4 |
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); |