mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 18:34:19 +00:00
Remove potentially unsafe casts
The id type is already uint64_t, no need to cast using some low level casts. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
b921e81f76
commit
727d808332
@ -307,7 +307,7 @@ static inline void red_marshall_inval(RedChannelClient *rcc,
|
||||
SpiceMsgDisplayInvalOne inval_one;
|
||||
|
||||
red_channel_client_init_send_data(rcc, SPICE_MSG_CURSOR_INVAL_ONE, NULL);
|
||||
inval_one.id = *(uint64_t *)&cach_item->id;
|
||||
inval_one.id = cach_item->id;
|
||||
|
||||
spice_marshall_msg_cursor_inval_one(base_marshaller, &inval_one);
|
||||
}
|
||||
|
||||
@ -1777,7 +1777,7 @@ static inline void marshall_inval_palette(RedChannelClient *rcc,
|
||||
SpiceMsgDisplayInvalOne inval_one;
|
||||
|
||||
red_channel_client_init_send_data(rcc, SPICE_MSG_DISPLAY_INVAL_PALETTE, NULL);
|
||||
inval_one.id = *(uint64_t *)&cache_item->id;
|
||||
inval_one.id = cache_item->id;
|
||||
|
||||
spice_marshall_msg_display_inval_palette(base_marshaller, &inval_one);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user