Fix build warning 53/78853/1
authorMyungki Lee <mk5004.lee@samsung.com>
Thu, 7 Jul 2016 06:41:20 +0000 (15:41 +0900)
committerMyungki Lee <mk5004.lee@samsung.com>
Thu, 7 Jul 2016 06:41:20 +0000 (15:41 +0900)
- type cast for lock_screen_content_level
- delete unused func
- delete comment

Change-Id: I30c3f415e9d344caccd8f70d0c413f77afbaac07
Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
src/notification_setting.c
src/notification_setting_service.c

index fbe2cdc..67818bc 100755 (executable)
@@ -518,20 +518,6 @@ out:
        return err;
 }
 
-/* LCOV_EXCL_START */
-bool privilege_info_cb(const char *privilege_name, void *user_data)
-{
-       bool *found = user_data;
-
-       if (privilege_name && strcmp(NOTIFICATION_PRIVILEGE, privilege_name) == 0) {
-               *found = true;
-               return false;
-       }
-
-       return true;
-}
-/* LCOV_EXCL_STOP */
-
 EXPORT_API int notification_setting_insert_package_for_uid(const char *package_id, uid_t uid)
 {
        int err = NOTIFICATION_ERROR_NONE;
@@ -545,8 +531,6 @@ EXPORT_API int notification_setting_delete_package_for_uid(const char *package_i
        return _notification_setting_alter_package_list(OPERATION_TYPE_DELETE_RECORD, package_id, uid);
 }
 
-/* system setting --------------------------------*/
-
 EXPORT_API int notification_system_setting_load_system_setting_for_uid(notification_system_setting_h *system_setting, uid_t uid)
 {
        int ret = NOTIFICATION_ERROR_NONE;
index e5a3a32..2da4c87 100644 (file)
@@ -356,7 +356,7 @@ int noti_system_setting_load_system_setting(notification_system_setting_h *syste
                _get_table_field_data_int(query_result, &(result_system_setting->dnd_start_min), col_index++);
                _get_table_field_data_int(query_result, &(result_system_setting->dnd_end_hour), col_index++);
                _get_table_field_data_int(query_result, &(result_system_setting->dnd_end_min), col_index++);
-               _get_table_field_data_int(query_result, &(result_system_setting->lock_screen_content_level), col_index++);
+               _get_table_field_data_int(query_result, (int *)&(result_system_setting->lock_screen_content_level), col_index++);
                /* LCOV_EXCL_STOP */
        }