mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix FTBFS introduced in 2748d4e901
This commit is contained in:
22
src/option.c
22
src/option.c
@@ -1282,6 +1282,17 @@ static char *domain_rev6(int from_file, char *server, struct in6_addr *addr6, in
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void if_names_add(const char *ifname)
|
||||||
|
{
|
||||||
|
struct iname *new = opt_malloc(sizeof(struct iname));
|
||||||
|
new->next = daemon->if_names;
|
||||||
|
daemon->if_names = new;
|
||||||
|
/* new->name may be NULL if someone does
|
||||||
|
"interface=" to disable all interfaces except loop. */
|
||||||
|
new->name = opt_string_alloc(ifname);
|
||||||
|
new->flags = 0;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_DHCP
|
#ifdef HAVE_DHCP
|
||||||
|
|
||||||
static int is_tag_prefix(char *arg)
|
static int is_tag_prefix(char *arg)
|
||||||
@@ -1411,17 +1422,6 @@ static void dhcp_opt_free(struct dhcp_opt *opt)
|
|||||||
free(opt);
|
free(opt);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void if_names_add(const char *ifname)
|
|
||||||
{
|
|
||||||
struct iname *new = opt_malloc(sizeof(struct iname));
|
|
||||||
new->next = daemon->if_names;
|
|
||||||
daemon->if_names = new;
|
|
||||||
/* new->name may be NULL if someone does
|
|
||||||
"interface=" to disable all interfaces except loop. */
|
|
||||||
new->name = opt_string_alloc(ifname);
|
|
||||||
new->flags = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This is too insanely large to keep in-line in the switch */
|
/* This is too insanely large to keep in-line in the switch */
|
||||||
static int parse_dhcp_opt(char *errstr, char *arg, int flags)
|
static int parse_dhcp_opt(char *errstr, char *arg, int flags)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user