diff --git a/samgr_endpoint/source/default_client_rpc.c b/samgr_endpoint/source/default_client_rpc.c index dc6f9559d19b6e72ee0d110d66133d8784a075da..33dcd0030c26f9bff3b15f7b00a1692cd0924cd8 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);