Skip to content

Commit 83574f5

Browse files
committed
[toup] zephyr: The POSIX API config will pull inet_ntoa()
No need to specify inet_ntoa() as it will be implemented when POSIX API config option is enabled. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent aa28703 commit 83574f5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/utils/common.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,13 +1302,3 @@ void forced_memzero(void *ptr, size_t len)
13021302
if (len)
13031303
forced_memzero_val = ((u8 *) ptr)[0];
13041304
}
1305-
1306-
#ifdef __ZEPHYR__
1307-
#include <zephyr/net/net_ip.h>
1308-
extern char *inet_ntoa(struct in_addr in)
1309-
{
1310-
static char addr[NET_IPV4_ADDR_LEN];
1311-
1312-
return net_addr_ntop(AF_INET, (const void *)&in, addr, NET_IPV4_ADDR_LEN);
1313-
}
1314-
#endif

0 commit comments

Comments
 (0)