From df3aedaf38df715f5faf3a0a2795e61098980963 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Mon, 2 Dec 2013 20:06:20 +0530 Subject: Use herrnop directly H_ERRNO_ARGS is unnecessary since we this file is specifically for hosts lookup. --- nss/nss_files/files-hosts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nss') 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; -- cgit v1.2.3