From 83574f533fb5c6808af0d9872741d72d48be2f98 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Mon, 22 Apr 2024 15:32:56 +0300 Subject: [PATCH] [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 --- src/utils/common.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/utils/common.c b/src/utils/common.c index b74a60efa5..2c12751938 100644 --- a/src/utils/common.c +++ b/src/utils/common.c @@ -1302,13 +1302,3 @@ void forced_memzero(void *ptr, size_t len) if (len) forced_memzero_val = ((u8 *) ptr)[0]; } - -#ifdef __ZEPHYR__ -#include -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