about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-29 15:41:23 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-29 15:41:23 +0000
commit062a2a18f425f8b6c667b7239afeed2dd80d5e45 (patch)
treef074c1cd78b5bef701793a7a18eb1e8f224cfbee
parent98da3ec2ba3c320c140e461fa23fabd66bced868 (diff)
downloadglibc-062a2a18f425f8b6c667b7239afeed2dd80d5e45.tar.gz
glibc-062a2a18f425f8b6c667b7239afeed2dd80d5e45.tar.xz
glibc-062a2a18f425f8b6c667b7239afeed2dd80d5e45.zip
Update.
2000-09-29  Ulrich Drepper  <drepper@redhat.com>

	* inet/getnameinfo.c (nrl_domainname): Use symbolic constant
	INADDR_LOOPBACK instead of numeric value.
-rw-r--r--ChangeLog5
-rw-r--r--inet/getnameinfo.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a173745f0..43db7507af 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 2a6e01f505..0811f2775f 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),