net/can: add missing FAR specifier
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
69b6a1f09c
commit
c241644f08
@ -73,7 +73,7 @@ struct can_recvfrom_s
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_NET_CANPROTO_OPTIONS
|
#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
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
@ -327,14 +327,14 @@ static inline int can_readahead(struct can_recvfrom_s *pstate)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_NET_CANPROTO_OPTIONS
|
#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;
|
uint32_t i;
|
||||||
|
|
||||||
#ifdef CONFIG_NET_CAN_ERRORS
|
#ifdef CONFIG_NET_CAN_ERRORS
|
||||||
/* error message frame */
|
/* error message frame */
|
||||||
|
|
||||||
if (id & CAN_ERR_FLAG)
|
if ((id & CAN_ERR_FLAG) != 0)
|
||||||
{
|
{
|
||||||
return id & conn->err_mask ? 1 : 0;
|
return id & conn->err_mask ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user