[glib-networking/fix-osx-warnings: 3/3] Fix warnings when building on osx
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking/fix-osx-warnings: 3/3] Fix warnings when building on osx
- Date: Fri, 17 May 2019 17:22:56 +0000 (UTC)
commit 8822144305577a81f332167c4bba83387ee75430
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 d62d16d..0679153 100644
--- a/tls/tests/connection.c
+++ b/tls/tests/connection.c
@@ -1608,7 +1608,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);
@@ -1699,7 +1699,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]