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:
Andrew Davis
2024-03-15 13:59:11 -05:00
committed by Arnaud Pouliquen
parent 1680aada79
commit 976baf3b59

View File

@@ -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;