mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 23:46:17 +01:00
Resolve warnings about istream and ostream in socket test
This commit is contained in:
parent
8f19d06ed9
commit
426f90e3cf
@ -193,7 +193,11 @@ main (int argc,
|
|||||||
g_object_unref (src_address);
|
g_object_unref (src_address);
|
||||||
|
|
||||||
if (use_udp)
|
if (use_udp)
|
||||||
connection = NULL;
|
{
|
||||||
|
connection = NULL;
|
||||||
|
istream = NULL;
|
||||||
|
ostream = NULL;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
connection = G_IO_STREAM (g_socket_connection_factory_create_connection (socket));
|
connection = G_IO_STREAM (g_socket_connection_factory_create_connection (socket));
|
||||||
|
|
||||||
|
@ -238,6 +238,12 @@ main (int argc,
|
|||||||
istream = g_io_stream_get_input_stream (connection);
|
istream = g_io_stream_get_input_stream (connection);
|
||||||
ostream = g_io_stream_get_output_stream (connection);
|
ostream = g_io_stream_get_output_stream (connection);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
g_assert (use_udp);
|
||||||
|
istream = NULL;
|
||||||
|
ostream = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
while (TRUE)
|
while (TRUE)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user