Fix const warnings
This commit is contained in:
+2
-2
@@ -32,7 +32,7 @@ static void uc_cached_clock_now(const struct UCoreClock *uclock,
|
|||||||
struct timeval *tv)
|
struct timeval *tv)
|
||||||
{
|
{
|
||||||
const struct UCoreCachedClock *cached_clock;
|
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;
|
*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)
|
static void uc_settable_clock_now(const struct UCoreClock *uclock, struct timeval *tv)
|
||||||
{
|
{
|
||||||
const struct UCoreSettableClock *cached_clock;
|
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;
|
*tv = cached_clock->now;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user