mirror of
https://github.com/OpenAMP/open-amp.git
synced 2026-02-06 02:54:32 +08:00
apps: linux_rpc_demo: Do not access members of rpmsg_endpoint
The contents of this struct are internal to the RPMsg layer. Access should only happen using accessor functions. Signed-off-by: Andrew Davis <afd@ti.com>
This commit is contained in:
committed by
Arnaud Pouliquen
parent
1680aada79
commit
976baf3b59
@@ -223,8 +223,11 @@ int rpmsg_handle_term(void *data, struct rpmsg_rpc_svr *rpcs)
|
||||
struct rpmsg_rpc_req_term *rpc_term_req = req_ptr;
|
||||
struct rpmsg_endpoint *ept = &rpcs->ept;
|
||||
|
||||
printf("Received termination request at id %d from endpoint %s\r\n",
|
||||
rpc_term_req->id, ept->name);
|
||||
if (!rpc_term_req || !ept)
|
||||
return -EINVAL;
|
||||
|
||||
printf("Received termination request at id %d\r\n",
|
||||
rpc_term_req->id);
|
||||
request_termination = 1;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user