Follows claudio's lead in ospfd et al.
Problem reported by mortimer.
-/* $OpenBSD: frontend.c,v 1.63 2021/01/19 16:52:12 florian Exp $ */
+/* $OpenBSD: frontend.c,v 1.64 2021/01/19 16:52:40 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
int pending_query_cnt(void);
struct uw_conf *frontend_conf;
-struct imsgev *iev_main;
-struct imsgev *iev_resolver;
+static struct imsgev *iev_main;
+static struct imsgev *iev_resolver;
struct event ev_route;
int udp4sock = -1, udp6sock = -1;
int tcp4sock = -1, tcp6sock = -1;
-/* $OpenBSD: resolver.c,v 1.130 2021/01/19 16:50:23 florian Exp $ */
+/* $OpenBSD: resolver.c,v 1.131 2021/01/19 16:52:40 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
const char *query_imsg2str(struct query_imsg *);
struct uw_conf *resolver_conf;
-struct imsgev *iev_frontend;
-struct imsgev *iev_main;
+static struct imsgev *iev_frontend;
+static struct imsgev *iev_main;
struct uw_forwarder_head autoconf_forwarder_list;
struct uw_resolver *resolvers[UW_RES_NONE];
int enabled_resolvers[UW_RES_NONE];
-/* $OpenBSD: unwind.c,v 1.55 2021/01/19 16:50:23 florian Exp $ */
+/* $OpenBSD: unwind.c,v 1.56 2021/01/19 16:52:40 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
void solicit_dns_proposals(void);
void send_blocklist_fd(void);
-struct uw_conf *main_conf;
-struct imsgev *iev_frontend;
-struct imsgev *iev_resolver;
-char *conffile;
-
-pid_t frontend_pid;
-pid_t resolver_pid;
-
-uint32_t cmd_opts;
-
-int routesock;
+struct uw_conf *main_conf;
+static struct imsgev *iev_frontend;
+static struct imsgev *iev_resolver;
+char *conffile;
+pid_t frontend_pid;
+pid_t resolver_pid;
+uint32_t cmd_opts;
+int routesock;
void
main_sig_handler(int sig, short event, void *arg)