From c6807d38a11d67d6fc8a49040ce29dfe84ffe4ed Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 7 Apr 2009 16:13:15 +0000 Subject: * resolv/res_hconf.c (_res_hconf_trim_domain): Use strcasecmp instead of __strcasecmp. * resolv/nss_dns/dns-host.c (getanswer_r): Likewise. --- resolv/nss_dns/dns-host.c | 2 +- resolv/res_hconf.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'resolv') diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c index a9462ae97a..62e67e8b01 100644 --- a/resolv/nss_dns/dns-host.c +++ b/resolv/nss_dns/dns-host.c @@ -824,7 +824,7 @@ getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, switch (type) { case T_PTR: - if (__builtin_expect (__strcasecmp (tname, bp) != 0, 0)) + if (__builtin_expect (strcasecmp (tname, bp) != 0, 0)) { syslog (LOG_NOTICE | LOG_AUTH, AskedForGot, qname, bp); cp += n; diff --git a/resolv/res_hconf.c b/resolv/res_hconf.c index 25f7397927..a98dfda88a 100644 --- a/resolv/res_hconf.c +++ b/resolv/res_hconf.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1993, 1995-2006, 2007 Free Software Foundation, Inc. +/* Copyright (C) 1993, 1995-2006, 2007, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by David Mosberger (davidm@azstarnet.com). @@ -518,7 +518,7 @@ _res_hconf_trim_domain (char *hostname) trim_len = strlen (trim); if (hostname_len > trim_len - && __strcasecmp (&hostname[hostname_len - trim_len], trim) == 0) + && strcasecmp (&hostname[hostname_len - trim_len], trim) == 0) { hostname[hostname_len - trim_len] = '\0'; break; -- cgit 1.4.1