[Spice-commits] server/reds_stream.c
Frediano Ziglio
fziglio at kemper.freedesktop.org
Mon Oct 12 06:12:22 PDT 2015
server/reds_stream.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e60a3beb3cc2b9507fa3b8dd3a18d6fddb27adb5
Author: Frediano Ziglio <fziglio at redhat.com>
Date: Tue Jun 9 08:42:23 2015 +0100
Simplify pointer computation
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
Acked-by: Christophe Fergeau <cfergeau at redhat.com>
diff --git a/server/reds_stream.c b/server/reds_stream.c
index 1a595b2..6dc41ca 100644
--- a/server/reds_stream.c
+++ b/server/reds_stream.c
@@ -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);
More information about the Spice-commits
mailing list