summaryrefslogtreecommitdiff
path: root/libc/inet/addr.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-25 07:43:18 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-25 07:43:18 +0000
commitfe8655142206e34169a524dc2063fe5732f126a1 (patch)
tree08006723f5974c4e6319b7f2728c6c6dc1674f05 /libc/inet/addr.c
parent1d8abd74c4ae9b28035b549345f9f736cdb98c10 (diff)
reinstate external visibility of inet_ntoa_r,
and add it to arpa/inet.h header.
Diffstat (limited to 'libc/inet/addr.c')
-rw-r--r--libc/inet/addr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libc/inet/addr.c b/libc/inet/addr.c
index cbe3d6893..93ef63fc8 100644
--- a/libc/inet/addr.c
+++ b/libc/inet/addr.c
@@ -122,7 +122,8 @@ libc_hidden_def(inet_addr)
#define INET_NTOA_MAX_LEN 16 /* max 12 digits + 3 '.'s + 1 nul */
-static char *inet_ntoa_r(struct in_addr in, char buf[INET_NTOA_MAX_LEN])
+libc_hidden_proto(inet_ntoa_r)
+char *inet_ntoa_r(struct in_addr in, char buf[INET_NTOA_MAX_LEN])
{
in_addr_t addr = ntohl(in.s_addr);
int i;
@@ -141,6 +142,7 @@ static char *inet_ntoa_r(struct in_addr in, char buf[INET_NTOA_MAX_LEN])
return p+1;
}
+libc_hidden_def(inet_ntoa_r)
libc_hidden_proto(inet_ntoa)
char *inet_ntoa(struct in_addr in)