Use herrnop directly
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 2 Dec 2013 14:36:20 +0000 (20:06 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 2 Dec 2013 14:36:20 +0000 (20:06 +0530)
H_ERRNO_ARGS is unnecessary since we this file is specifically for
hosts lookup.

ChangeLog
nss/nss_files/files-hosts.c

index ad1bdf6..7afaeca 100644 (file)
--- 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.
index 957c9aa..cfec75d 100644 (file)
@@ -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;