Renaming valid_until_cb() to dhcpv4_valid_until_cb() is more consistent with
the other function names and is helpful if the function ever shows up in a
stack trace.
Signed-off-by: David Härdeman <david@hardeman.nu>
Link: https://github.com/openwrt/odhcpd/pull/264
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
}
}
-static void valid_until_cb(struct uloop_timeout *event)
+static void dhcpv4_valid_until_cb(struct uloop_timeout *event)
{
struct interface *iface;
time_t now = odhcpd_time();
int dhcpv4_init(void)
{
static struct netevent_handler dhcpv4_netevent_handler = { .cb = dhcpv4_netevent_cb };
- static struct uloop_timeout valid_until_timeout = { .cb = valid_until_cb };
+ static struct uloop_timeout valid_until_timeout = { .cb = dhcpv4_valid_until_cb };
uloop_timeout_set(&valid_until_timeout, 1000);
netlink_add_netevent_handler(&dhcpv4_netevent_handler);