aboutsummaryrefslogtreecommitdiff
path: root/hw/core/clock-vmstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/core/clock-vmstate.c')
-rw-r--r--hw/core/clock-vmstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/core/clock-vmstate.c b/hw/core/clock-vmstate.c
index 7eccb6d4ea..e831fc596f 100644
--- a/hw/core/clock-vmstate.c
+++ b/hw/core/clock-vmstate.c
@@ -41,7 +41,7 @@ const VMStateDescription vmstate_muldiv = {
.version_id = 1,
.minimum_version_id = 1,
.needed = muldiv_needed,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT32(multiplier, Clock),
VMSTATE_UINT32(divider, Clock),
VMSTATE_END_OF_LIST()
@@ -53,11 +53,11 @@ const VMStateDescription vmstate_clock = {
.version_id = 0,
.minimum_version_id = 0,
.pre_load = clock_pre_load,
- .fields = (VMStateField[]) {
+ .fields = (const VMStateField[]) {
VMSTATE_UINT64(period, Clock),
VMSTATE_END_OF_LIST()
},
- .subsections = (const VMStateDescription*[]) {
+ .subsections = (const VMStateDescription * const []) {
&vmstate_muldiv,
NULL
},