[Spice-devel] [PATCH spice-server 10/33] red-channel-client: Use socket compatibility layer
Frediano Ziglio
fziglio at redhat.com
Fri Dec 21 12:02:58 UTC 2018
Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
server/red-channel-client.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/server/red-channel-client.c b/server/red-channel-client.c
index 375a60b3..07f1988d 100644
--- a/server/red-channel-client.c
+++ b/server/red-channel-client.c
@@ -697,7 +697,7 @@ static void red_channel_client_ping_timer(void *opaque)
int so_unsent_size = 0;
/* retrieving the occupied size of the socket's tcp snd buffer (unacked + unsent) */
- if (ioctl(rcc->priv->stream->socket, SIOCOUTQ, &so_unsent_size) == -1) {
+ if (ioctl(socket_get_raw(rcc->priv->stream->socket), SIOCOUTQ, &so_unsent_size) == -1) {
red_channel_warning(red_channel_client_get_channel(rcc),
"ioctl(SIOCOUTQ) failed, %s", strerror(errno));
}
@@ -1034,7 +1034,7 @@ void red_channel_client_shutdown(RedChannelClient *rcc)
SpiceCoreInterfaceInternal *core = red_channel_get_core_interface(rcc->priv->channel);
core->watch_remove(core, rcc->priv->stream->watch);
rcc->priv->stream->watch = NULL;
- shutdown(rcc->priv->stream->socket, SHUT_RDWR);
+ shutdown(socket_get_raw(rcc->priv->stream->socket), SHUT_RDWR);
}
}
--
2.17.2
More information about the Spice-devel
mailing list