This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit ead9f64a84846e987ed00092210a562329836ad4 Author: p-szafonimateusz <[email protected]> AuthorDate: Mon Nov 9 11:51:11 2026 +0100 net/can: Rename can_nextconn() to can_conn_next(). Rename can_nextconn() to can_conn_next(), so that the functions that work on the list of CAN connections share the can_conn_ prefix. No functional change. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: p-szafonimateusz <[email protected]> --- net/can/can.c | 6 +++--- net/can/can.h | 4 ++-- net/devif/devif_poll.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/net/can/can.c b/net/can/can.c index dafcb167d40..130f28b0fa8 100644 --- a/net/can/can.c +++ b/net/can/can.c @@ -766,7 +766,7 @@ static int can_recv_filter(FAR struct can_conn_s *conn, canid_t id) #endif /**************************************************************************** - * Name: can_nextconn() + * Name: can_conn_next * * Description: * Traverse the list of allocated NetLink connections @@ -776,7 +776,7 @@ static int can_recv_filter(FAR struct can_conn_s *conn, canid_t id) * ****************************************************************************/ -FAR struct can_conn_s *can_nextconn(FAR struct can_conn_s *conn) +FAR struct can_conn_s *can_conn_next(FAR struct can_conn_s *conn) { if (conn == NULL) { @@ -837,7 +837,7 @@ FAR struct can_conn_s *can_active(FAR struct net_driver_s *dev, #endif can_conn_list_lock(); - while ((conn = can_nextconn(conn)) != NULL) + while ((conn = can_conn_next(conn)) != NULL) { if ((conn->dev == NULL && _SS_ISBOUND(conn->sconn.s_flags)) || conn->dev == dev) diff --git a/net/can/can.h b/net/can/can.h index c26936f2b55..22b5d22f1bc 100644 --- a/net/can/can.h +++ b/net/can/can.h @@ -173,7 +173,7 @@ FAR struct can_conn_s *can_alloc(void); void can_free(FAR struct can_conn_s *conn); /**************************************************************************** - * Name: can_nextconn() + * Name: can_conn_next * * Description: * Traverse the list of allocated NetLink connections @@ -183,7 +183,7 @@ void can_free(FAR struct can_conn_s *conn); * ****************************************************************************/ -FAR struct can_conn_s *can_nextconn(FAR struct can_conn_s *conn); +FAR struct can_conn_s *can_conn_next(FAR struct can_conn_s *conn); /**************************************************************************** * Name: can_conn_list_lock diff --git a/net/devif/devif_poll.c b/net/devif/devif_poll.c index 72a93750455..ccb0012d102 100644 --- a/net/devif/devif_poll.c +++ b/net/devif/devif_poll.c @@ -343,7 +343,7 @@ devif_poll_can_connections(FAR struct net_driver_s *dev, */ can_conn_list_lock(); - while (!bstop && (can_conn = can_nextconn(can_conn))) + while (!bstop && (can_conn = can_conn_next(can_conn))) { /* Skip connections that are bound to other polling devices */
