mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-29 08:47:13 +00:00
Simplify pointer computation
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
5d0649b8f0
commit
e60a3beb3c
@ -326,7 +326,7 @@ RedsStream *reds_stream_new(int socket)
|
||||
RedsStream *stream;
|
||||
|
||||
stream = spice_malloc0(sizeof(RedsStream) + sizeof(RedsStreamPrivate));
|
||||
stream->priv = (RedsStreamPrivate *)(((char *)stream) + sizeof(RedsStream));
|
||||
stream->priv = (RedsStreamPrivate *)(stream+1);
|
||||
stream->priv->info = spice_new0(SpiceChannelEventInfo, 1);
|
||||
reds_stream_set_socket(stream, socket);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user