aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--inet/getnameinfo.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a17374..43db750 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-09-29 Ulrich Drepper <drepper@redhat.com>
+
+ * inet/getnameinfo.c (nrl_domainname): Use symbolic constant
+ INADDR_LOOPBACK instead of numeric value.
+
2000-09-28 H.J. Lu <hjl@gnu.org>
* sysdeps/ia64/dl-machine.h (RTLD_START): Adjust _dl_argv by
diff --git a/inet/getnameinfo.c b/inet/getnameinfo.c
index 2a6e01f..0811f27 100644
--- a/inet/getnameinfo.c
+++ b/inet/getnameinfo.c
@@ -134,7 +134,7 @@ nrl_domainname (void)
{
struct in_addr in_addr;
- in_addr.s_addr = htonl (0x7f000001);
+ in_addr.s_addr = htonl (INADDR_LOOPBACK);
while (__gethostbyaddr_r ((const char *) &in_addr,
sizeof (struct in_addr),