Follows claudio's lead in ospfd et al.
Problem reported by mortimer.
-/* $OpenBSD: engine.c,v 1.17 2021/01/19 16:53:27 florian Exp $ */
+/* $OpenBSD: engine.c,v 1.18 2021/01/19 16:54:48 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
struct engine_iface *find_engine_iface_by_id(uint32_t);
void iface_timeout(int, short, void *);
-struct rad_conf *engine_conf;
-struct imsgev *iev_frontend;
-struct imsgev *iev_main;
+struct rad_conf *engine_conf;
+static struct imsgev *iev_frontend;
+static struct imsgev *iev_main;
struct sockaddr_in6 all_nodes;
void
-/* $OpenBSD: frontend.c,v 1.38 2021/01/19 16:54:00 florian Exp $ */
+/* $OpenBSD: frontend.c,v 1.39 2021/01/19 16:54:48 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
struct sockaddr **);
struct rad_conf *frontend_conf;
-struct imsgev *iev_main;
-struct imsgev *iev_engine;
+static struct imsgev *iev_main;
+static struct imsgev *iev_engine;
struct event ev_route;
int ioctlsock = -1, routesock = -1;
struct ipv6_mreq all_routers;
-/* $OpenBSD: rad.c,v 1.25 2021/01/19 16:53:27 florian Exp $ */
+/* $OpenBSD: rad.c,v 1.26 2021/01/19 16:54:48 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
void in6_prefixlen2mask(struct in6_addr *, int len);
-struct rad_conf *main_conf;
-struct imsgev *iev_frontend;
-struct imsgev *iev_engine;
+struct rad_conf *main_conf;
+static struct imsgev *iev_frontend;
+static struct imsgev *iev_engine;
char *conffile;
-
-pid_t frontend_pid;
-pid_t engine_pid;
-
-uint32_t cmd_opts;
+pid_t frontend_pid;
+pid_t engine_pid;
+uint32_t cmd_opts;
void
main_sig_handler(int sig, short event, void *arg)