return strlen(s) >= l && strncmp(s, prefix, l) == 0;
}
-static int load_resolv_conf(const DaemonConfig *c) {
+static int load_resolv_conf(void) {
int ret = -1;
FILE *f;
int i = 0;
if (resolv_conf_entry_group)
avahi_s_entry_group_reset(resolv_conf_entry_group);
- load_resolv_conf(&config);
+ load_resolv_conf();
update_wide_area_servers();
static int run_server(DaemonConfig *c) {
int r = -1;
int error;
- const AvahiPoll *poll_api;
- AvahiWatch *sig_watch;
+ const AvahiPoll *poll_api = NULL;
+ AvahiWatch *sig_watch = NULL;
assert(c);
#endif
}
- load_resolv_conf(c);
+ load_resolv_conf();
static_service_load();
if (!(avahi_server = avahi_server_new(poll_api, &c->server_config, server_callback, c, &error))) {