From: Tomasz Swierczek Date: Fri, 7 Jul 2023 06:25:09 +0000 (+0200) Subject: Fix issues found by using new toolchain X-Git-Tag: accepted/tizen/unified/20230712.040719~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=242105e444c49c9b42ac68286021fa3bbe3042f6;p=platform%2Fcore%2Fsecurity%2Faskuser.git Fix issues found by using new toolchain Change-Id: I5f2acf2ed72659983d4664082f5758141cdd449a --- diff --git a/src/capi/impl/privacy_privilege_manager.c b/src/capi/impl/privacy_privilege_manager.c index b494ea5..b397bd0 100644 --- a/src/capi/impl/privacy_privilege_manager.c +++ b/src/capi/impl/privacy_privilege_manager.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020 Samsung Electronics Co., Ltd. All rights reserved + * Copyright (c) 2017-2023 Samsung Electronics Co., Ltd. All rights reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -131,7 +131,7 @@ static ppm_call_cause_e askuser_client_request_cause_to_ppm(askuser_call_cause c return PRIVACY_PRIVILEGE_MANAGER_CALL_CAUSE_ERROR; } - return ASKUSER_CALL_CAUSE_ERROR; + return PRIVACY_PRIVILEGE_MANAGER_CALL_CAUSE_ERROR; } static int g_io_condition_to_askuser_events(GIOCondition cond) @@ -223,7 +223,7 @@ static void ppm_popup_response_callback(UNUSED int request_id, askuser_call_caus } ppm_call_cause_e ppm_cause = askuser_client_request_cause_to_ppm(cause); - ppm_check_result_e ppm_result = askuser_client_request_result_to_ppm(result); + ppm_request_result_e ppm_result = askuser_client_request_result_to_ppm(result); callback_closure->callback(ppm_cause, ppm_result, privilege, callback_closure->user_data); @@ -249,7 +249,7 @@ static void ppm_popup_multiple_response_callback(UNUSED int request_id, askuser_ ppm_request_result_e *ppm_results = malloc(privileges_count * sizeof(ppm_request_result_e)); if (!ppm_results) { - callback_closure->callback(ASKUSER_CALL_CAUSE_ERROR, NULL, privileges, privileges_count, callback_closure->user_data); + callback_closure->callback(PRIVACY_PRIVILEGE_MANAGER_CALL_CAUSE_ERROR, NULL, privileges, privileges_count, callback_closure->user_data); free(callback_closure); return; } diff --git a/src/capi/test/privacy_privilege_manager_test.cpp b/src/capi/test/privacy_privilege_manager_test.cpp index a3b3270..c9d7525 100644 --- a/src/capi/test/privacy_privilege_manager_test.cpp +++ b/src/capi/test/privacy_privilege_manager_test.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2020 Samsung Electronics Co., Ltd. All rights reserved + * Copyright (c) 2017-2023 Samsung Electronics Co., Ltd. All rights reserved * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include