[glib] Resolve warnings about istream and ostream in socket test
- From: Christian Dywan <cdywan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Resolve warnings about istream and ostream in socket test
- Date: Fri, 3 Dec 2010 15:33:34 +0000 (UTC)
commit 426f90e3cf9f21c6b020cecb05116b331546fe58
Author: Christian Dywan <christian twotoasts de>
Date: Fri Dec 3 16:33:24 2010 +0100
Resolve warnings about istream and ostream in socket test
gio/tests/socket-client.c | 6 +++++-
gio/tests/socket-server.c | 6 ++++++
2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/socket-client.c b/gio/tests/socket-client.c
index 7c44165..61997da 100644
--- a/gio/tests/socket-client.c
+++ b/gio/tests/socket-client.c
@@ -193,7 +193,11 @@ main (int argc,
g_object_unref (src_address);
if (use_udp)
- connection = NULL;
+ {
+ connection = NULL;
+ istream = NULL;
+ ostream = NULL;
+ }
else
connection = G_IO_STREAM (g_socket_connection_factory_create_connection (socket));
diff --git a/gio/tests/socket-server.c b/gio/tests/socket-server.c
index d48a5a4..f151681 100644
--- a/gio/tests/socket-server.c
+++ b/gio/tests/socket-server.c
@@ -238,6 +238,12 @@ main (int argc,
istream = g_io_stream_get_input_stream (connection);
ostream = g_io_stream_get_output_stream (connection);
}
+ else
+ {
+ g_assert (use_udp);
+ istream = NULL;
+ ostream = NULL;
+ }
while (TRUE)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]