[Spice-devel] [PATCH spice-server 2/6] spicevmc: Avoid useless pointer cast
Frediano Ziglio
fziglio at redhat.com
Thu Jan 26 10:56:44 UTC 2017
red_channel_client_handle_message already accepts a void* pointer.
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/spicevmc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/spicevmc.c b/server/spicevmc.c
index 0dc2b19..a92ec7f 100644
--- a/server/spicevmc.c
+++ b/server/spicevmc.c
@@ -574,7 +574,7 @@ static int spicevmc_red_channel_client_handle_message_parsed(RedChannelClient *r
sif->event(channel->chardev_sin, *(uint8_t*)msg);
break;
default:
- return red_channel_client_handle_message(rcc, size, type, (uint8_t*)msg);
+ return red_channel_client_handle_message(rcc, size, type, msg);
}
return TRUE;
--
2.9.3
More information about the Spice-devel
mailing list