mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
resolv: Remove source argument fron res_options
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2017-06-30 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
|
* resolv/res_init.c (res_setoptions): Remove source argument.
|
||||||
|
(res_vinit_1): Adjust.
|
||||||
|
|
||||||
2017-06-30 Florian Weimer <fweimer@redhat.com>
|
2017-06-30 Florian Weimer <fweimer@redhat.com>
|
||||||
|
|
||||||
* resolv/res_query.c (DEBUG): Remove preprocessor conditional.
|
* resolv/res_query.c (DEBUG): Remove preprocessor conditional.
|
||||||
|
@ -103,7 +103,7 @@
|
|||||||
#include <inet/net-internal.h>
|
#include <inet/net-internal.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
static void res_setoptions (res_state, const char *, const char *);
|
static void res_setoptions (res_state, const char *);
|
||||||
static uint32_t net_mask (struct in_addr);
|
static uint32_t net_mask (struct in_addr);
|
||||||
|
|
||||||
unsigned long long int __res_initstamp;
|
unsigned long long int __res_initstamp;
|
||||||
@ -381,7 +381,7 @@ res_vinit_1 (res_state statp, bool preinit, FILE *fp, char **buffer)
|
|||||||
}
|
}
|
||||||
if (MATCH (*buffer, "options"))
|
if (MATCH (*buffer, "options"))
|
||||||
{
|
{
|
||||||
res_setoptions (statp, *buffer + sizeof ("options") - 1, "conf");
|
res_setoptions (statp, *buffer + sizeof ("options") - 1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -417,7 +417,7 @@ res_vinit_1 (res_state statp, bool preinit, FILE *fp, char **buffer)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((cp = getenv ("RES_OPTIONS")) != NULL)
|
if ((cp = getenv ("RES_OPTIONS")) != NULL)
|
||||||
res_setoptions (statp, cp, "env");
|
res_setoptions (statp, cp);
|
||||||
statp->options |= RES_INIT;
|
statp->options |= RES_INIT;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -469,7 +469,7 @@ __res_vinit (res_state statp, int preinit)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
res_setoptions (res_state statp, const char *options, const char *source)
|
res_setoptions (res_state statp, const char *options)
|
||||||
{
|
{
|
||||||
const char *cp = options;
|
const char *cp = options;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user