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 760fdd6b858f6baf9c75da9877f080b4cc398f74 Author: wangzitong7 <[email protected]> AuthorDate: Mon Jan 5 18:02:06 2026 +0800 net/udp: Modify the return type of the udp_recvfrom_newdata function Change the data type of recvlen from size_t to ssize_t and remove the return statement from the function. Signed-off-by: wangzitong7 <[email protected]> --- net/udp/udp_recvfrom.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/net/udp/udp_recvfrom.c b/net/udp/udp_recvfrom.c index 17ed2a4035a..c90f5e290e8 100644 --- a/net/udp/udp_recvfrom.c +++ b/net/udp/udp_recvfrom.c @@ -126,10 +126,10 @@ static void udp_recvpktinfo(FAR struct udp_recvfrom_s *pstate, * ****************************************************************************/ -static inline size_t udp_recvfrom_newdata(FAR struct net_driver_s *dev, - FAR struct udp_recvfrom_s *pstate) +static inline void udp_recvfrom_newdata(FAR struct net_driver_s *dev, + FAR struct udp_recvfrom_s *pstate) { - size_t recvlen; + ssize_t recvlen; int offset; /* Copy the new appdata into the user buffer */ @@ -145,8 +145,6 @@ static inline size_t udp_recvfrom_newdata(FAR struct net_driver_s *dev, pstate->ir_recvlen = recvlen; dev->d_len = 0; - - return recvlen; } static inline void udp_readahead(struct udp_recvfrom_s *pstate)
