aboutsummaryrefslogtreecommitdiff
path: root/io/channel-watch.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/channel-watch.c')
-rw-r--r--io/channel-watch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/io/channel-watch.c b/io/channel-watch.c
index 6ac4100..64b486e 100644
--- a/io/channel-watch.c
+++ b/io/channel-watch.c
@@ -275,13 +275,13 @@ GSource *qio_channel_create_fd_watch(QIOChannel *ioc,
#ifdef CONFIG_WIN32
GSource *qio_channel_create_socket_watch(QIOChannel *ioc,
- int socket,
+ int sockfd,
GIOCondition condition)
{
GSource *source;
QIOChannelSocketSource *ssource;
- qemu_socket_select(socket, ioc->event,
+ qemu_socket_select(sockfd, ioc->event,
FD_READ | FD_ACCEPT | FD_CLOSE |
FD_CONNECT | FD_WRITE | FD_OOB, NULL);
@@ -293,7 +293,7 @@ GSource *qio_channel_create_socket_watch(QIOChannel *ioc,
object_ref(OBJECT(ioc));
ssource->condition = condition;
- ssource->socket = socket;
+ ssource->socket = _get_osfhandle(sockfd);
ssource->revents = 0;
ssource->fd.fd = (gintptr)ioc->event;