From b74a4ab6638712ee6944f0923f3870b2fbeb6a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Wed, 16 Jul 2025 09:02:33 +0200 Subject: [PATCH] Fix const warnings --- src/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clock.c b/src/clock.c index bfdbcb7..8813e64 100644 --- a/src/clock.c +++ b/src/clock.c @@ -32,7 +32,7 @@ static void uc_cached_clock_now(const struct UCoreClock *uclock, struct timeval *tv) { const struct UCoreCachedClock *cached_clock; - cached_clock = UC_CONST_CONTAINER_OF(uclock, const struct UCoreCachedClock, clock), + cached_clock = UC_CONST_CONTAINER_OF(uclock, struct UCoreCachedClock, clock), *tv = cached_clock->cache; } @@ -55,7 +55,7 @@ void uc_cached_clock_update(struct UCoreCachedClock *uclock) static void uc_settable_clock_now(const struct UCoreClock *uclock, struct timeval *tv) { const struct UCoreSettableClock *cached_clock; - cached_clock = UC_CONST_CONTAINER_OF(uclock, const struct UCoreSettableClock, clock), + cached_clock = UC_CONST_CONTAINER_OF(uclock, struct UCoreSettableClock, clock), *tv = cached_clock->now; }