[glib-networking/fix-osx-warnings] Fix warnings when building on osx
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/fix-osx-warnings] Fix warnings when building on osx
- Date: Fri, 17 May 2019 13:03:08 +0000 (UTC)
commit 9b49814726d93633ef547726d9c48a72c5190ee3
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Fri May 17 15:02:09 2019 +0200
Fix warnings when building on osx
Fixes https://gitlab.gnome.org/GNOME/glib-networking/issues/78
tls/tests/connection.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tls/tests/connection.c b/tls/tests/connection.c
index 6397115..68e903f 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -1594,7 +1594,7 @@ simul_async_write_complete (GObject *object,
if (test->nwrote < TEST_DATA_LENGTH)
{
g_output_stream_write_async (G_OUTPUT_STREAM (object),
- TEST_DATA + test->nwrote,
+ &TEST_DATA[test->nwrote],
TEST_DATA_LENGTH - test->nwrote,
G_PRIORITY_DEFAULT, NULL,
simul_async_write_complete, test);
@@ -1685,7 +1685,7 @@ simul_write_thread (gpointer user_data)
while (test->nwrote < TEST_DATA_LENGTH)
{
nwrote = g_output_stream_write (ostream,
- TEST_DATA + test->nwrote,
+ &TEST_DATA[test->nwrote],
MIN (TEST_DATA_LENGTH / 2, TEST_DATA_LENGTH - test->nwrote),
NULL, &error);
g_assert_no_error (error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]