summaryrefslogtreecommitdiff
path: root/libc/inet/addr.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-03-12 20:24:03 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:21 +0200
commitb9e58bace839d8a992ef4937b446f88b47a3e8bc (patch)
tree1858131cfba58a8d345b8f9fafb6f83375a08fb9 /libc/inet/addr.c
parent5068fb4d28fde61bc8b58809fd2f9b49e49da61c (diff)
no need for hidden inet_ntoa_r
it is reused within the same file, solve it through a static function Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/inet/addr.c')
-rw-r--r--libc/inet/addr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/inet/addr.c b/libc/inet/addr.c
index c71d4d4f7..8ae857664 100644
--- a/libc/inet/addr.c
+++ b/libc/inet/addr.c
@@ -114,7 +114,7 @@ libc_hidden_def(inet_addr)
#define INET_NTOA_MAX_LEN 16 /* max 12 digits + 3 '.'s + 1 nul */
-char *inet_ntoa_r(struct in_addr in, char buf[INET_NTOA_MAX_LEN])
+static char *__inet_ntoa_r(struct in_addr in, char buf[INET_NTOA_MAX_LEN])
{
in_addr_t addr = ntohl(in.s_addr);
int i;
@@ -133,12 +133,12 @@ char *inet_ntoa_r(struct in_addr in, char buf[INET_NTOA_MAX_LEN])
return p+1;
}
-libc_hidden_def(inet_ntoa_r)
+strong_alias(__inet_ntoa_r,inet_ntoa_r)
char *inet_ntoa(struct in_addr in)
{
static char buf[INET_NTOA_MAX_LEN];
- return inet_ntoa_r(in, buf);
+ return __inet_ntoa_r(in, buf);
}
libc_hidden_def(inet_ntoa)
#endif