Skip to content

Commit

Permalink
net/can: add missing FAR specifier
Browse files Browse the repository at this point in the history
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
  • Loading branch information
pkarashchenko committed Sep 15, 2023
1 parent 21fee7f commit 19b233b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions net/can/can_recvmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct can_recvfrom_s
****************************************************************************/

#ifdef CONFIG_NET_CANPROTO_OPTIONS
static int can_recv_filter(struct can_conn_s *conn, canid_t id);
static int can_recv_filter(FAR struct can_conn_s *conn, canid_t id);
#endif

/****************************************************************************
Expand Down Expand Up @@ -327,14 +327,14 @@ static inline int can_readahead(struct can_recvfrom_s *pstate)
}

#ifdef CONFIG_NET_CANPROTO_OPTIONS
static int can_recv_filter(struct can_conn_s *conn, canid_t id)
static int can_recv_filter(FAR struct can_conn_s *conn, canid_t id)
{
uint32_t i;

#ifdef CONFIG_NET_CAN_ERRORS
/* error message frame */

if (id & CAN_ERR_FLAG)
if ((id & CAN_ERR_FLAG) != 0)
{
return id & conn->err_mask ? 1 : 0;
}
Expand All @@ -346,7 +346,7 @@ static int can_recv_filter(struct can_conn_s *conn, canid_t id)
{
if ((id & conn->filters[i].can_mask) !=
((conn->filters[i].can_id & ~CAN_INV_FILTER) &
conn->filters[i].can_mask))
conn->filters[i].can_mask))
{
return 1;
}
Expand Down

0 comments on commit 19b233b

Please sign in to comment.