summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2015-04-28 14:48:13 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2015-04-28 14:48:41 -0400
commit8ceb47f37d5ce14722ca1c545c67177258e39c95 (patch)
tree45337f7055951d37810ad527a47956724b320042
parent63f53d4031e3ffba4e166ecf34df7e9d11d2b55e (diff)
examples: Use the correct g_io_channel_win32_new_fd() function
-rw-r--r--examples/sdp-example.c2
-rw-r--r--examples/simple-example.c2
-rw-r--r--examples/threaded-example.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/sdp-example.c b/examples/sdp-example.c
index 342061f..246341e 100644
--- a/examples/sdp-example.c
+++ b/examples/sdp-example.c
@@ -125,7 +125,7 @@ example_thread(void *data)
gchar *sdp, *sdp64;
#ifdef G_OS_WIN32
- io_stdin = g_io_channel_win32_new(_fileno(stdin));
+ io_stdin = g_io_channel_win32_new_fd(_fileno(stdin));
#else
io_stdin = g_io_channel_unix_new(fileno(stdin));
#endif
diff --git a/examples/simple-example.c b/examples/simple-example.c
index c28cbb3..6e13dc6 100644
--- a/examples/simple-example.c
+++ b/examples/simple-example.c
@@ -113,7 +113,7 @@ main(int argc, char *argv[])
gloop = g_main_loop_new(NULL, FALSE);
#ifdef G_OS_WIN32
- io_stdin = g_io_channel_win32_new(_fileno(stdin));
+ io_stdin = g_io_channel_win32_new_fd(_fileno(stdin));
#else
io_stdin = g_io_channel_unix_new(fileno(stdin));
#endif
diff --git a/examples/threaded-example.c b/examples/threaded-example.c
index f1f2750..79eda8d 100644
--- a/examples/threaded-example.c
+++ b/examples/threaded-example.c
@@ -136,7 +136,7 @@ example_thread(void *data)
int rval;
#ifdef G_OS_WIN32
- io_stdin = g_io_channel_win32_new(_fileno(stdin));
+ io_stdin = g_io_channel_win32_new_fd(_fileno(stdin));
#else
io_stdin = g_io_channel_unix_new(fileno(stdin));
#endif