You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2016/05/19 05:53:49 UTC

incubator-mynewt-core git commit: BLE Host - Fix misordered fields in unit test.

Repository: incubator-mynewt-core
Updated Branches:
  refs/heads/090_dev 9d7ab35ff -> 48df9b088


BLE Host - Fix misordered fields in unit test.

Newer versions of gcc warn about the misordered fields.  This was
causing a unit test to fail to compile under Linux.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/48df9b08
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/48df9b08
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/48df9b08

Branch: refs/heads/090_dev
Commit: 48df9b088c50cfc97d2518a823294ace761633d6
Parents: 9d7ab35
Author: Christopher Collins <cc...@apache.org>
Authored: Wed May 18 22:52:46 2016 -0700
Committer: Christopher Collins <cc...@apache.org>
Committed: Wed May 18 22:52:46 2016 -0700

----------------------------------------------------------------------
 net/nimble/host/src/test/ble_gatt_conn_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/48df9b08/net/nimble/host/src/test/ble_gatt_conn_test.c
----------------------------------------------------------------------
diff --git a/net/nimble/host/src/test/ble_gatt_conn_test.c b/net/nimble/host/src/test/ble_gatt_conn_test.c
index a319a05..7b6628f 100644
--- a/net/nimble/host/src/test/ble_gatt_conn_test.c
+++ b/net/nimble/host/src/test/ble_gatt_conn_test.c
@@ -471,7 +471,7 @@ TEST_CASE(ble_gatt_conn_test_disconnect)
 
     write_rel_arg.exp_conn_handle = 3;
     rc = ble_gattc_write_reliable(3,
-                                  ((struct ble_gatt_attr[]){{8, 0, NULL, 0}}),
+                                  ((struct ble_gatt_attr[]){{8, 0, 0, NULL}}),
                                   1, ble_gatt_conn_test_write_rel_cb,
                                   &write_rel_arg);
     TEST_ASSERT_FATAL(rc == 0);