diff options
| author | David Härdeman | 2025-09-24 12:31:58 +0000 |
|---|---|---|
| committer | Álvaro Fernández Rojas | 2025-10-03 10:53:04 +0000 |
| commit | 2bb556ed0dd65cdc736601ea1eb5a84ff0c12f4c (patch) | |
| tree | 2ef0d99619f4d15693143878d5a978b73d94149d | |
| parent | f770588f5ed64915829ae22b2fa393482351a6fd (diff) | |
| download | odhcpd-2bb556ed0dd65cdc736601ea1eb5a84ff0c12f4c.tar.gz | |
dhcpv4: rename valid_until_cb()
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>
| -rw-r--r-- | src/dhcpv4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dhcpv4.c b/src/dhcpv4.c index 385faf6..e2c978a 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -1218,7 +1218,7 @@ static void dhcpv4_netevent_cb(unsigned long event, struct netevent_handler_info } } -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(); @@ -1241,7 +1241,7 @@ static void valid_until_cb(struct uloop_timeout *event) 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); |