summaryrefslogtreecommitdiff
path: root/src/network/inet_ntoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/inet_ntoa.c')
-rw-r--r--src/network/inet_ntoa.c10
1 files changed, 0 insertions, 10 deletions
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 <arpa/inet.h>
-#include <stdio.h>
-
-char *inet_ntoa(struct in_addr in)
-{
- static char buf[16];
- unsigned char *a = (void *)&in;
- snprintf(buf, sizeof buf, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
- return buf;
-}