Skip to content

Commit

Permalink
[toup] zephyr: The POSIX API config will pull inet_ntoa()
Browse files Browse the repository at this point in the history
No need to specify inet_ntoa() as it will be implemented when
POSIX API config option is enabled.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
  • Loading branch information
jukkar committed Apr 30, 2024
1 parent aa28703 commit 83574f5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/utils/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1302,13 +1302,3 @@ void forced_memzero(void *ptr, size_t len)
if (len)
forced_memzero_val = ((u8 *) ptr)[0];
}

#ifdef __ZEPHYR__
#include <zephyr/net/net_ip.h>
extern char *inet_ntoa(struct in_addr in)
{
static char addr[NET_IPV4_ADDR_LEN];

return net_addr_ntop(AF_INET, (const void *)&in, addr, NET_IPV4_ADDR_LEN);
}
#endif

0 comments on commit 83574f5

Please sign in to comment.