You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by st...@apache.org on 2016/12/18 21:57:03 UTC

[35/50] incubator-mynewt-core git commit: oic; we don't actually keep track of mac address in oc_endpoint. So remove it.

oic; we don't actually keep track of mac address in oc_endpoint.
So remove it.


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/8680eeb6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/8680eeb6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/8680eeb6

Branch: refs/heads/sensors_branch
Commit: 8680eeb63eac7a8b26181c0eed20db190878f354
Parents: e4c5e61
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Dec 14 16:17:01 2016 -0800
Committer: Sterling Hughes <st...@apache.org>
Committed: Sun Dec 18 13:56:17 2016 -0800

----------------------------------------------------------------------
 net/oic/src/port/mynewt/log.c      | 6 +-----
 net/oic/src/port/oc_connectivity.h | 2 --
 2 files changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/8680eeb6/net/oic/src/port/mynewt/log.c
----------------------------------------------------------------------
diff --git a/net/oic/src/port/mynewt/log.c b/net/oic/src/port/mynewt/log.c
index 85b80c6..b2f1b88 100644
--- a/net/oic/src/port/mynewt/log.c
+++ b/net/oic/src/port/mynewt/log.c
@@ -48,11 +48,7 @@ oc_log_endpoint(uint16_t lvl, struct oc_endpoint *oe)
 #endif
 #if (MYNEWT_VAL(OC_TRANSPORT_GATT) == 1)
     case GATT:
-        snprintf(tmp, sizeof(tmp), "%02x:%02x:%02x:%02x:%02x:%02x-%u\n",
-                 oe->bt_addr.address[0], oe->bt_addr.address[1],
-                 oe->bt_addr.address[2], oe->bt_addr.address[3],
-                 oe->bt_addr.address[4], oe->bt_addr.address[5],
-                 oe->bt_addr.conn_handle);
+        snprintf(tmp, sizeof(tmp), "%u\n", oe->bt_addr.conn_handle);
         str = tmp;
         break;
 #endif

http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/8680eeb6/net/oic/src/port/oc_connectivity.h
----------------------------------------------------------------------
diff --git a/net/oic/src/port/oc_connectivity.h b/net/oic/src/port/oc_connectivity.h
index 807b0fb..ea44e3e 100644
--- a/net/oic/src/port/oc_connectivity.h
+++ b/net/oic/src/port/oc_connectivity.h
@@ -31,8 +31,6 @@ typedef struct {
 } oc_ipv6_addr_t;
 
 typedef struct {
-    uint8_t type;
-    uint8_t address[6];
     uint16_t conn_handle;
 } oc_le_addr_t;