about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-12-02 20:06:20 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-12-02 20:06:20 +0530
commitdf3aedaf38df715f5faf3a0a2795e61098980963 (patch)
treef4a379d3a3c46279318b2f806930f1bd984b762d
parentb42ad38d63776fc973b234fa17c429b4a06c6fa6 (diff)
downloadglibc-df3aedaf38df715f5faf3a0a2795e61098980963.tar.gz
glibc-df3aedaf38df715f5faf3a0a2795e61098980963.tar.xz
glibc-df3aedaf38df715f5faf3a0a2795e61098980963.zip
Use herrnop directly
H_ERRNO_ARGS is unnecessary since we this file is specifically for
hosts lookup.
-rw-r--r--ChangeLog5
-rw-r--r--nss/nss_files/files-hosts.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ad1bdf6e65..7afaeca607 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	* nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
+	Use HERRNOP directly.
+
 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
 
 	* sysdeps/powerpc/fpu/libm-test-ulps: Update.
diff --git a/nss/nss_files/files-hosts.c b/nss/nss_files/files-hosts.c
index 957c9aa036..cfec75da76 100644
--- a/nss/nss_files/files-hosts.c
+++ b/nss/nss_files/files-hosts.c
@@ -399,8 +399,8 @@ _nss_files_gethostbyname4_r (const char *name, struct gaih_addrtuple **pat,
 	  buflen = buflen > pad ? buflen - pad : 0;
 
 	  struct hostent result;
-	  status = internal_getent (&result, buffer, buflen, errnop
-				    H_ERRNO_ARG, AF_UNSPEC, 0);
+	  status = internal_getent (&result, buffer, buflen, errnop,
+				    herrnop, AF_UNSPEC, 0);
 	  if (status != NSS_STATUS_SUCCESS)
 	    break;