[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 48/51] io/channel-watch: Drop a superfluous '#ifdef WIN32'
From: |
Bin Meng |
Subject: |
[PATCH 48/51] io/channel-watch: Drop a superfluous '#ifdef WIN32' |
Date: |
Wed, 24 Aug 2022 17:40:26 +0800 |
From: Bin Meng <bin.meng@windriver.com>
In the win32 version qio_channel_create_socket_watch() body there is
no need to do a '#ifdef WIN32'.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
---
io/channel-watch.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/io/channel-watch.c b/io/channel-watch.c
index 0289b3647c..89f3c8a88a 100644
--- a/io/channel-watch.c
+++ b/io/channel-watch.c
@@ -285,11 +285,9 @@ GSource *qio_channel_create_socket_watch(QIOChannel *ioc,
GSource *source;
QIOChannelSocketSource *ssource;
-#ifdef WIN32
WSAEventSelect(socket, ioc->event,
FD_READ | FD_ACCEPT | FD_CLOSE |
FD_CONNECT | FD_WRITE | FD_OOB);
-#endif
source = g_source_new(&qio_channel_socket_source_funcs,
sizeof(QIOChannelSocketSource));
--
2.34.1
- Re: [PATCH 41/51] tests/qtest: migration-test: Kill "to" after migration is canceled, (continued)
- [PATCH 45/51] tests/qtest: prom-env-test: Use double quotes to pass the prom-env option, Bin Meng, 2022/08/24
- [PATCH 46/51] tests/qtest: libqtest: Replace the call to close a socket with closesocket(), Bin Meng, 2022/08/24
- [PATCH 36/51] tests/qtest: machine-none-test: Use double quotes to pass the cpu option, Bin Meng, 2022/08/24
- [PATCH 40/51] chardev/char-file: Add FILE_SHARE_WRITE when openning the file for win32, Bin Meng, 2022/08/24
- [PATCH 44/51] tests/qtest: microbit-test: Fix socket access for win32, Bin Meng, 2022/08/24
- [PATCH 47/51] tests/qtest: libqtest: Correct the timeout unit of blocking receive calls for win32, Bin Meng, 2022/08/24
- [PATCH 48/51] io/channel-watch: Drop a superfluous '#ifdef WIN32',
Bin Meng <=
- [PATCH 49/51] io/channel-watch: Fix socket watch on Windows, Bin Meng, 2022/08/24
- [PATCH 50/51] .gitlab-ci.d/windows.yml: Increase the timeout to the runner limit, Bin Meng, 2022/08/24
- [PATCH 51/51] docs/devel: testing: Document writing portable test cases, Bin Meng, 2022/08/24