diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2023-08-31 09:45:18 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-08-31 09:45:18 +0100 |
commit | 279695a4a4472c41d8764317e4fae04d93ee2b42 (patch) | |
tree | 7594d8e6853c69fb6149a5410dfa59a429a04b18 | |
parent | 7038b6e4e71d9fb3a234e00da31c222d3e97dd5c (diff) | |
download | qemu-279695a4a4472c41d8764317e4fae04d93ee2b42.zip qemu-279695a4a4472c41d8764317e4fae04d93ee2b42.tar.gz qemu-279695a4a4472c41d8764317e4fae04d93ee2b42.tar.bz2 |
hw/rtc/twl92230: Use int64_t for sec_offset and alm_sec
In the twl92230 device, use int64_t for the two state fields
sec_offset and alm_sec, because we set these to values that
are either time_t or differences between two time_t values.
These fields aren't saved in vmstate anywhere, so we can
safely widen them.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
-rw-r--r-- | hw/rtc/twl92230.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/rtc/twl92230.c b/hw/rtc/twl92230.c index d8534da..64c61c3 100644 --- a/hw/rtc/twl92230.c +++ b/hw/rtc/twl92230.c @@ -65,8 +65,8 @@ struct MenelausState { struct tm tm; struct tm new; struct tm alm; - int sec_offset; - int alm_sec; + int64_t sec_offset; + int64_t alm_sec; int next_comp; } rtc; uint16_t rtc_next_vmstate; |