Skip to content

Commit

Permalink
apps: linux_rpc_demo: Do not access members of rpmsg_endpoint
Browse files Browse the repository at this point in the history
The contents of this struct are internal to the RPMsg layer. Access
should only happen using accessor functions.

Signed-off-by: Andrew Davis <[email protected]>
  • Loading branch information
glneo committed Mar 15, 2024
1 parent 79b795e commit 742ad0c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/examples/linux_rpc_demo/linux_rpc_demod.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,9 @@ int rpmsg_handle_term(void *data, struct rpmsg_rpc_svr *rpcs)
{
void *req_ptr = data + MAX_FUNC_ID_LEN;
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);
printf("Received termination request at id %d\r\n",
rpc_term_req->id);
request_termination = 1;

return 0;
Expand Down

0 comments on commit 742ad0c

Please sign in to comment.