From 1ecf2451387968dffec4131f2accd09946eb99ce Mon Sep 17 00:00:00 2001 From: Colin McInnes Date: Thu, 9 Jan 2025 09:45:43 -0600 Subject: [PATCH] Use uint32_t for RTA_EXPIRES Remove debug logging as well. --- src/if-linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/if-linux.c b/src/if-linux.c index 1c1873d4..e8d2c85b 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -753,7 +753,7 @@ if_copyrt(struct dhcpcd_ctx *ctx, struct rt *rt, struct nlmsghdr *nlm) break; } case RTA_EXPIRES: - rt->rt_expires = *(unsigned int *)RTA_DATA(rta); + rt->rt_expires = *(uint32_t *)RTA_DATA(rta); break; } @@ -1739,7 +1739,6 @@ if_route(unsigned char cmd, const struct rt *rt) add_attr_32(&nlm.hdr, sizeof(nlm), RTA_OIF, rt->rt_ifp->index); /* add route lifetime */ - logdebugx("Sending RTA_EXPIRES %d", rt->rt_expires); add_attr_32(&nlm.hdr, sizeof(nlm), RTA_EXPIRES, rt->rt_expires); if (rt->rt_metric != 0)