From e40f48a421a9176e3e298b5bac75f0355b219e58 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 25 Jun 2013 21:35:49 -0400 Subject: implement inet_lnaof, inet_netof, and inet_makeaddr also move all legacy inet_* functions into a single file to avoid wasting object file and compile time overhead on them. the added functions are legacy interfaces for working with classful ipv4 network addresses. they have no modern usefulness whatsoever, but some programs unconditionally use them anyway, and they're tiny. --- src/network/inet_ntoa.c | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 src/network/inet_ntoa.c (limited to 'src/network/inet_ntoa.c') diff --git a/src/network/inet_ntoa.c b/src/network/inet_ntoa.c deleted file mode 100644 index 71411e0b..00000000 --- a/src/network/inet_ntoa.c +++ /dev/null @@ -1,10 +0,0 @@ -#include -#include - -char *inet_ntoa(struct in_addr in) -{ - static char buf[16]; - unsigned char *a = (void *)∈ - snprintf(buf, sizeof buf, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]); - return buf; -} -- cgit v1.2.1