From 0dfa503f898c99f9f19c08ad729ff84a21320a90 Mon Sep 17 00:00:00 2001 From: Mr_YX <496043997@qq.com> Date: Thu, 2 Jun 2022 05:34:23 +0000 Subject: [PATCH] =?UTF-8?q?=E3=80=8COpenHarmony=E5=BC=80=E6=BA=90=E8=B4=A1?= =?UTF-8?q?=E7=8C=AE=E8=80=85=E8=AE=A1=E5=88=922022=E3=80=8Dupdate=20samgr?= =?UTF-8?q?=5Fendpoint/source/default=5Fclient=5Frpc.c.=20Signed-off-by:?= =?UTF-8?q?=20mr-yx=20<496043997@qq.com>?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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..33dcd00 100644 --- a/samgr_endpoint/source/default_client_rpc.c +++ b/samgr_endpoint/source/default_client_rpc.c @@ -13,6 +13,7 @@ * limitations under the License. */ #include "default_client_adapter.h" +#include static int AddRef(IUnknown *iUnknown); static int Release(IUnknown *proxy); @@ -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