Signed-off-by: Felix Fietkau <nbd@openwrt.org>
static char *iface_name = "eth0";
+static void
+signal_shutdown(int signal)
+{
+ uloop_end();
+}
+
int
main(int argc, char **argv)
{
return -1;
}
- signal_setup();
+ signal(SIGPIPE, SIG_IGN);
+ signal(SIGTERM, signal_shutdown);
+ signal(SIGKILL, signal_shutdown);
if (cache_init())
return -1;
char mdns_hostname[HOSTNAME_LEN];
char mdns_hostname_local[HOSTNAME_LEN + 6];
-static void
-signal_shutdown(int signal)
-{
- uloop_end();
-}
-
-void
-signal_setup(void)
-{
- signal(SIGPIPE, SIG_IGN);
- signal(SIGTERM, signal_shutdown);
- signal(SIGKILL, signal_shutdown);
-}
-
uint32_t
rand_time_delta(uint32_t t)
{
void *memdup(const void *d, int l);
-extern void signal_setup(void);
extern void get_hostname(void);
extern uint32_t rand_time_delta(uint32_t t);