Skip to content

Commit

Permalink
Network: corrected gethostbyname code example in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
furbanc authored and RobertRostohar committed Nov 11, 2024
1 parent 568006f commit 0c17cd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/Doxygen/Network/src/rl_net.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1930,7 +1930,7 @@ void Resolver_Thread (void *arg) {
else if (host->h_addrtype == AF_INET) {
for (j = 0; host->h_addr_list[j]; j++) {
addr = (IN_ADDR *)host->h_addr_list[j];
printf("IP Address: %s\n", inet_ntoa(addr->sin_addr));
printf("IP Address: %s\n", inet_ntoa(addr->s_addr));
}
}
osDelay (300);
Expand Down

0 comments on commit 0c17cd4

Please sign in to comment.