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