mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 23:49:04 +00:00
use more portable SPICE_OFFSETOF instead of offsetof
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
e8017dd366
commit
538080da76
@ -442,7 +442,7 @@ uint64_t *stat_add_counter(RedsState *reds, StatNodeRef parent, const char *name
|
||||
|
||||
void stat_remove_counter(RedsState *reds, uint64_t *counter)
|
||||
{
|
||||
reds_stat_remove(reds, (SpiceStatNode *)(counter - offsetof(SpiceStatNode, value)));
|
||||
reds_stat_remove(reds, (SpiceStatNode *)(counter - SPICE_OFFSETOF(SpiceStatNode, value)));
|
||||
}
|
||||
|
||||
void stat_update_value(RedsState *reds, uint32_t value)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user