[Spice-devel] [PATCH spice-gtk 08/15] Remove arithmetic on void* pointers
Daniel P. Berrange
berrange at redhat.com
Tue Mar 13 06:40:06 PDT 2012
From: "Daniel P. Berrange" <berrange at redhat.com>
Arithmetic on void * pointers is undefined by the C standard.
Convert the one case of this to use guint8 instead.
* gtk/channel-main.c: s/void */guint8 */
---
gtk/channel-main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gtk/channel-main.c b/gtk/channel-main.c
index 745e954..bd64662 100644
--- a/gtk/channel-main.c
+++ b/gtk/channel-main.c
@@ -777,7 +777,7 @@ static void agent_msg_queue(SpiceMainChannel *channel, int type, int size, void
SpiceMainChannelPrivate *c = channel->priv;
SpiceMsgOut *out;
VDAgentMessage msg;
- void *payload;
+ guint8 *payload;
guint32 paysize;
guint8 *d = data;
--
1.7.7.6
More information about the Spice-devel
mailing list