Swatantra-66 commented on code in PR #20691:
URL: https://github.com/apache/nuttx/pull/20691#discussion_r4302101559


##########
libs/libc/netdb/lib_getaddrinfo.c:
##########
@@ -122,6 +130,38 @@ FAR static struct ai_s *alloc_ai(int family, int socktype, 
int protocol,
   return ai;
 }
 
+static int add_ai(FAR struct addrinfo **res,

Review Comment:
   thank you @xiaoxiang781216.
   
   Updated `add_ai()` to eliminate `res` and let `prev_ai` (as `FAR struct 
addrinfo **prev_ai = res;`) thread and manage the single linked list directly.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to