* libc/minires.c (res_ninit): Drop handling for LOCALDOMAIN environment

variable.
This commit is contained in:
Corinna Vinschen 2006-12-12 08:29:37 +00:00
parent 8470d6bc0e
commit d6a6da338b
2 changed files with 5 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2006-12-12 Corinna Vinschen <corinna@vinschen.de>
* libc/minires.c (res_ninit): Drop handling for LOCALDOMAIN environment
variable.
2006-12-11 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (DLL_OFILES): Add minires-os-if.o and minires.o.

View File

@ -257,7 +257,6 @@ struct __res_state *__res_state(void)
int res_ninit(res_state statp)
{
int i;
char * ptr;
statp->res_h_errno = NETDB_SUCCESS;
statp->nscount = 0;
@ -270,11 +269,6 @@ int res_ninit(res_state statp)
for (i = 0; i < DIM(statp->dnsrch); i++) statp->dnsrch[i] = 0;
/* Get search list from LOCALDOMAIN */
if ((ptr = getenv("LOCALDOMAIN")) != 0 ) {
DPRINTF(statp->options & RES_DEBUG, "LOCALDOMAIN \"%s\"\n", ptr);
minires_get_search(ptr, statp); /* domain or dnsrch */
}
/* resolv.conf (dns servers & search list)*/
get_resolv(statp);
/* Get dns servers and search list from an os-specific routine, set os_query */