OSDN Git Service

Add a flexible array to the end of BT_HDR to avoid pointer arithmetic.
authorSharvil Nanavati <sharvil@google.com>
Tue, 24 Jun 2014 23:45:55 +0000 (16:45 -0700)
committerSharvil Nanavati <sharvil@google.com>
Sun, 29 Jun 2014 04:21:16 +0000 (04:21 +0000)
commitf0952b522e3326b79b146e7c3c59fa3b29d59de6
tree0f90596451bcf0854b4a178f3ed99c843e67df03
parent5055c9d0061aaa451de9ee33d6d2d2716f188e0f
Add a flexible array to the end of BT_HDR to avoid pointer arithmetic.

This change should clean up a lot of code. I've verified sizeof(BT_HDR)
remains constant after this change on ARM, x86, and x86_64.

Change-Id: I762351fa0f24a587da190de3e522bc74e497c542
hci/include/bt_hci_bdroid.h
stack/include/bt_types.h