mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-30 12:31:53 +08:00
Use herrnop directly
H_ERRNO_ARGS is unnecessary since we this file is specifically for hosts lookup.
This commit is contained in:
parent
b42ad38d63
commit
df3aedaf38
@ -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>
|
2013-12-02 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
|
* sysdeps/powerpc/fpu/libm-test-ulps: Update.
|
||||||
|
@ -399,8 +399,8 @@ _nss_files_gethostbyname4_r (const char *name, struct gaih_addrtuple **pat,
|
|||||||
buflen = buflen > pad ? buflen - pad : 0;
|
buflen = buflen > pad ? buflen - pad : 0;
|
||||||
|
|
||||||
struct hostent result;
|
struct hostent result;
|
||||||
status = internal_getent (&result, buffer, buflen, errnop
|
status = internal_getent (&result, buffer, buflen, errnop,
|
||||||
H_ERRNO_ARG, AF_UNSPEC, 0);
|
herrnop, AF_UNSPEC, 0);
|
||||||
if (status != NSS_STATUS_SUCCESS)
|
if (status != NSS_STATUS_SUCCESS)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user