Fix const warnings

This commit is contained in:
Nils O. Selåsdal
2025-07-16 09:02:33 +02:00
parent 6d7b80a6d2
commit b74a4ab663
+2 -2
View File
@@ -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;
}