From d2b5acddee8ca1a586a6609731bc767c58342ec6 Mon Sep 17 00:00:00 2001 From: Mr_YX <496043997@qq.com> Date: Thu, 2 Jun 2022 07:23:37 +0000 Subject: [PATCH] update samgr_endpoint/source/default_client_rpc.c. Signed-off-by: mr-yx <496043997@qq.com> --- samgr_endpoint/source/default_client_rpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samgr_endpoint/source/default_client_rpc.c b/samgr_endpoint/source/default_client_rpc.c index dc6f955..c041a0e 100644 --- a/samgr_endpoint/source/default_client_rpc.c +++ b/samgr_endpoint/source/default_client_rpc.c @@ -12,6 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +#include #include "default_client_adapter.h" static int AddRef(IUnknown *iUnknown); @@ -224,7 +225,7 @@ static SvcIdentity QueryIdentity(const char *service, const char *feature) } IpcIo reply; void *replyBuf = NULL; - SvcIdentity *samgr = GetContextObject(); + const SvcIdentity *samgr = GetContextObject(); MessageOption flag; MessageOptionInit(&flag); int ret = SendRequest(*samgr, INVALID_INDEX, &req, &reply, flag, (uintptr_t *)&replyBuf); -- Gitee